How do you refer to a class in a package ?give an example
Answers
Answered by
20
Answer:
Package in Java is a mechanism to encapsulate a group of classes, subpackages and interfaces. Packages are used for: ... For example there can be two classes with name Employee in twopackages, college.staff.cse.Employee and college.staff.ee.Employee.
Explanation:
hope it helps you
plz mark the brainliest
Answered by
0
Answer:
Package in java is a mechanism to encapsulate a group of classes, subpackages, and interface
Example of package in java are: Java, lang, javax, swing, util, etc.
Similar questions