Friday, December 30, 2011

Java Interview Questions - 86


What is the unnamed package?

The unnamed package is the package to which a source file's classes/interfaces belong when their source file lacks a package directive. From an implementation perspective, the unnamed package corresponds to whatever directory is current when you invoke the java command.

No comments: