The usage of Java packages.


Explain the usage of Java packages.

A. 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.

No comments :

Post a Comment

Your Comment and Question will help to make this blog better...