title: How can the following line of code can create an object without the new operator?
body: <p>What I have learned is that new is mandatory  for creating an object.So, how does this line of code(from java swing) works?</p>
  
  <pre><code>GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
  </code></pre>