I was trying to include two different public
classes in one .java
file but that did not run, and searching on stackoverflow gave me the answer that two top level classes cannot be in one .java
file.
But the same class with default
access run smoothly, Why is it so?