what is java package? give examples.
Answers
Answered by
2
Answer:
follow me
Explanation:
Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for: Preventing naming conflicts. For example there can be two classes with name Employee in two packages, college.
Answered by
1
Answer:
Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for: Preventing naming conflicts. For example there can be two classes with name Employee in two packages, college.
hope this helps you...!!☺️❤️
Similar questions