DEVFYI - Developer Resource - FYI

Explain the usage of Java packages.

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

117. Explain the usage of Java packages.

This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.

(Continued on next question...)

Other Interview Questions