Computer Science, asked by cuteiii7, 1 year ago

What is package in java?​


rohitbagoriya1977: how are you
kritika1001: fine
kritika1001: hey
kritika1001: rohit
kritika1001: pls chat
kritika1001: i am bored
rohitbagoriya1977: kya chat krni h batao
kritika1001: kuch bhi...
rohitbagoriya1977: kuch bh8
rohitbagoriya1977: apke no do

Answers

Answered by kritika1001
0

Packages 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.staff.cse.Employee and college.staff.ee.Employee

Making searching/locating and usage of classes, interfaces, enumerations and annotations easier

Answered by VISHALKUMARV22
8

Answer:

Preventing naming conflicts. For example there can be two classes with name Employee in two packages, college.staff.cse.Employee and college.staff.ee.Employee Making searching/locating and usage of classes, interfaces, enumerations and annotations easier

Similar questions