answersLogoWhite

0

How do you create packag in java?

Updated: 9/17/2019
User Avatar

Wiki User

11y ago

Best Answer

You can easily create Java packages with a few steps.

# Create a set of classes that you want to be in your package.

# Use the package keyword at the top of each of these classes to declare which package they're in. # Organize your source files such that a package name corresponds to a directory name. For instance, the JPanel class has a "package javax.swing;" declaration in the source file, and is located in the javax/swing folder.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create packag in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


Can you create a constructor for an interface in java?

NO, we cannot create a contructor for an interface in java.


How do you create setup of core java project?

how to create setup file in core java


What is the best compiler can be used to create Java programs?

A Java compiler.


What three objects are necessary to create a GUI in Java?

A computer, keyboard and Java compiler.


How do you create master page in jsp?

how to create a master page in java


Why not java create a system software?

mausam


Can you create an object of interface in java?

maybe


When did Bill Joy create Java?

1991


What are the feature's of the Java 'this' installation package?

The Java 'this' installation package allows one to create installation programs for their Java based applications. One can download the program from Java.


How you make a project in java?

You create a text file with a .java extension. Then you put a proper class definition.


Why constructor use in java?

To create objects of classes