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

What are Mathematical Functions in Java?

Java supports basic mathematical functions through math class defined in the Java long package. These functions should be used as follows math. Function _ name( ); Example: Double y = math. S...

Why is Java known as Plat Form Neutral Language?

The goal of Java is “write once run anywhere, any time, forever”. So Java is not dependent on any platform. It creates byte code, this code supports to all platforms. So Java is known as p...

How is Java more Secured than Other Languages?

Everything that you download form internet, you are risking a viral infection. Prior to Java, most users did not download executable programs frequently, and those who did scan them for virus prior ...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item