title: Can't create instance - Constructor has private access
body: <p>I have tried to create instance of  Desktop Class using
  <code>Desktop desktop = new Desktop();</code> 
  but i get the error <code>Desktop() has private access in Desktop</code> 
  but In <a href="https://docs.oracle.com/javase/7/docs/api/java/awt/Desktop.html" rel="nofollow noreferrer">java documentation</a> desktop class declared as public.like this..</p>
  
  <blockquote>
    <p>public class Desktop
    extends Object</p>
  </blockquote>
  
  <p>so since it is public. and neither static. so why cant I create a instance of it? 
  I know I can use
   <code>Desktop desktop = Desktop.getDesktop();</code>
  But I cant understand why I cant create a instance of Desktop class.</p>