What is Package in Java Program?
– In Simple word, package are folder or directory.
What is use of packages in Java Program?
– When we want to store our classes in proper folder that time we need packages.
I give simple project details with packages storage.
Project: College Management
– Store all Student related classes here
– Store all Faculty related classes here
– Store all admin related classes here
This structure or customization helps programmer to manage all project.
Example on Packages.
package pack1; // set path of packages
public static void main(String args)
System.out.println(“Welcome in Packages Examples”);
How to compile this program in command prompt
How to run this program in command prompt
Welcome in Packages Examples
Video available on YouTube.
If you have any query on blog example, you can directly comment us or subscribe our website
Share and Enjoy
484total visits,1visits today