title: what is the difference between `public class` and just `class`?
body: <p>I have noticed that if I don't write <code>public</code> before a class it works same as like a <code>public class</code>. I can't understand why so? It should show an error when I don't declare a class as <code>public</code>, <code>private</code> or <code>protected</code>. But it works fine. What is the reason?</p>