How to import a class from default package

From the Java language spec:

It is a compile time error to import a type from the unnamed package.

You’ll have to access the class via reflection or some other indirect method.

Leave a Comment