1.

What are the uses of a Java Package?

A. A package contains ready-to-use classes written for a specific purpose.
B. Packages are easy to distribute your code. It is nothing but reusability. Instead of writing code afresh, you can take advantage of the existing classes of a package. Simply import it and use.
C. Packages help in maintaining the code easily. Each sub-package may be maintained for more specific purposes. You can reuse the class names in sub-packages or other packages without name clash.
D. All the above
Answer» E.


Discussion

No Comment Found