title: When is the appropriate time to use the 'new' keyword?
body: <p>When is it necessary to use the <code>new</code> keyword in Java. I know you are supposed to use it when you create an instance of an object like this:</p>
  
  <pre><code>TextView textView = new TextView(this);
  </code></pre>
  
  <p>Sometimes in code I notice that <code>new</code> isn't used and I get confused..
  In this line of code:</p>
  
  <pre><code>    AssetManager assetManager = getAssets();
  </code></pre>
  
  <p>Why isn't an instance of the AssetManager created like this:</p>
  
  <pre><code>AssetManager assetManager = new AssetManager();
  </code></pre>
  
  <p>then it is set equal to getAssests()?</p>
  
  <p>When should <code>new</code> be used?</p>
  
  <p>Thanks!</p>