title: Java - The difference between class "ClassName" and public class "ClassName"
body: <p>What's the difference between</p>
  
  <pre><code>class x {
      //code here
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class x {
      //code here
  }
  </code></pre>
  
  <p>Sometimes I see examples on the Internet and they'll have <code>public class</code> instead of <code>class</code> and they're all simple programs. I use <code>class</code> for my assignments and so does everybody else</p>