What is package in Java?

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.4 Mar 2022

Sizin İçin Seçtik  Can we import class from default package in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *