In Chapter 6: Objects and Classes (Sun Website) By Simon Roberts, Philip Heller, and Michael Ernest
The authors mentioned that:
�It is illegal for a package and a class to have the same name, so there can be no ambiguity.�
However, when I tried to compile the following code, it was successful.
Why is it so? I mean, how can I prove it?
package P1;
class P1 {}
This is saved as P1.java in a directory P1 (which is again in a directory specified in my classpath)