answersLogoWhite

0


Best Answer

You don't execute a package; you execute a class. A package is just a grouping of classes.

You don't execute a package; you execute a class. A package is just a grouping of classes.

You don't execute a package; you execute a class. A package is just a grouping of classes.

You don't execute a package; you execute a class. A package is just a grouping of classes.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Any file can be marked as part of a package by simply adding the line "package [name];" Assuming your path variables are set correctly, these files can be imported with the import statement, just like the standard libraries. When you compile the files, they will end up in the hierarchy of their package statements. For instance, if you compile a class within the package of com.dir.file will end up in "[CLASSPATH]/com/dir/file".

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

You don't execute a package; you execute a class. A package is just a grouping of classes.

This answer is:
User Avatar

Add your answer:

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

Supermost package of java?

The supermost package of Java is the "java" package.


Why java execute with high performance?

I think java is object oriented language thats why that execute with high performance.


What is a collection of related classes called in java?

a package


How do you execute a Java program?

You can run a Java application from the command line using "java <name of the class>"


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.


Can we execute java program without main function?

no


What is java-compatible web browsers?

A Web browser that has inbuilt capability to execute Java code.


What is the name of the command to run a java program?

javausage: java path\FooBar will execute path\FooBar.class


What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


Which package is inbuilt in java API?

The java.lang package is automatically imported for you.


What is the library in java which does not need to be imported?

The java.lang package in Java is automatically imported for you.


What is user define package?

A user defined package is a package outside of the standard Java libraries.