title: What if new fails?
body: <p>In C++ and C# when new not able to allocate enought memory it throws exception. </p>
  
  <p>I couldn't find any information about new's behavior in Java.
  So what will happen if new fails in Java (not enough memory)? </p>