What are the Benefits of Organizing Classes in to Packages

1. The classes contained in the packages of other programs can be easily reused.

2. In packages, classes can be unique compared with classes in other packages. That is, two classes in two different packages can have the same name.

3. Packages provide a way to “hide” classes thus preventing other programs or packages from accessing classes that are meant for internal use only.

4. Packages also provide a way for separating “design” from “coding”.

Related

Java 4452553651129439309

Post a Comment

emo-but-icon

item