In this post, we will learn how to create a package using Eclipse IDE. Using packages resolves name conflicts of Java classes in the application source code. We can have Java classes with the same name in different packages.
Create a Package
Right click on the Project in the Project Explorer.
New >> Package
Give a package name and click on the Finish button to create package in the Eclipse IDE.
Alternatively, you can create package-info.java by checking the checkbox ( Create package-info.java)