Qus:    What are the advantages of defining packages in Java?
Aug 28, 2021 02:48 1 Answers Views: 357 JOSHUA
Prev Next
Answers (1)
RANJIT Sep 02, 2021 00:19
Answer:   By defining packages, we can avoid the name conflicts between the same class names defined in different packages. Packages also enable the developer to organize the similar classes more effectively. For example, one can clearly understand that the classes present in java.io package are used to perform io related operations.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect