Styrow.dev
Question 235 of 247
Java Topic: General medium

Why Packages are used?

Question

Why Packages are used?

Answer

Packages are used in Java in-order to prevent naming conflicts, to control access, to make searching/locating and usage of classes, interfaces, enumerations and annotations, etc., easier.