Advertisements
Advertisements
Question
A package contains:
Options
Tags
Classes
Data
Arrays
MCQ
Solution
Classes
Explanation:
A package in Java is a namespace that contains a collection of linked classes and interfaces. It reduces naming conflicts and makes code easier to maintain and manage. Packages can contain sub-packages, but their primary purpose is to organise classes together.
shaalaa.com
Is there an error in this question or solution?