Computer Science, asked by shimamahnot6568, 11 months ago

what is a java package​

Answers

Answered by shravani4381
2

Answer:

here is your answer:

Answer:

A Java package organizes Java classes into namespaces, providing a unique namespace for each type it contains. Classes in the same package can access each other's package-private and protected members. Java packages can be stored in compressed files called JAR files, allowing classes to be downloaded faster as groups rather than individually.

In general, a package can contain the following kinds of types: classes, interfaces, enumerations, and annotation types. A package allows a developer to group classes (and interfaces) together. These classes will all be related in some way – they might all have to do with a specific application or perform a specific set of tasks. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality.

Thank you

Thank you hope u like this answer

Answered by amitaagarwal4827
1

Answer:

package in java is a mechanism to encapsulate a group of classes the packages and interfaces.

Similar questions