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.
Now try to compile your code:
>javac package2\Clazz2.java -cp .
package2\Clazz2.java:3: ‘.’ expected
package2\Clazz2.java:3: ‘;’ expected
How stupid is this?
Is this why omitting package is deprecated?