Did you know that classes in the 'default package' (classes that don't have a package) cannot be imported from classes that do have a package?
I did not know that.
Try it:
This is what javac says:
>javac Class1.java
>javac package2\Clazz2.java -cp .
package2\Clazz2.java:3: '.' expected
import Class1;
^
package2\Clazz2.java:3: ';' expected
import Class1;
^
2 errors
How stupid is this?
Is this why omitting package is deprecated?