answersLogoWhite

0

Once you have compiled your Java source files:

javac MyClass.java

You can run the resulting class file and pass arguments:

java MyClass arg0 arg1 arg2

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What if you do not provide the string array as the argument to the method?

Actually speaking - Nothing. The Java program will start running. The args is just an optional parameter and you can pass it if you want and ignore it if you dont want to pass any runtime arguments


What is java's purpose on my PC?

Programs that are specifically designed with Java require a Java runtime to work on a computer. (In the case of Java, the runtime is called "Java Virtual Machine".) If you have any such program, you need to have Java.


Where can one download a java runtime environment?

The java runtime environment can be downloaded from several websites. Among them are Oracle, Java, CNET, Softsonic, Eclipse, AfterDawn, Soft32, and OldApps.


Can i read value in JAVA at runtime?

Yes you can...


Can you use programs in Java under Windows 8.1?

Yes you can but for that you must have have a Java Runtime Environment installed in your computer. Also if you are talking about programming in java then you need to install a Java SDK which can help you in executing your java code and run it. (It also contains Java Runtime Environment).


Why cant you run java on Windows 8?

You may have to install Java runtime support.


Who invoke main function in java?

The Java Runtime Environment invokes main methods.


What will java software do for you on your laptop?

The general Java Runtime Environment allows a computer to run Java applets and compiled Java files.


How do am pass arguments in public static void main?

By using command line arguments we can pass values to the static void main method at the time of running the Java class. For example: if Class name is A,then to run this class and accepts command line then run this by using below line java A <argument1> <argument2> ....


What is Java reflection?

java.lang.reflect package has the ability to analyze itself at runtime. This is called Java reflection.


Will Java runtime environment affect your PC?

Probably not, unless you run a virus written in Java.


What is ther role of jre in java?

JRE stands for Java Runtime Environment. JRE is the runtime set up that is required by the JVM to execute java programs. The JRE and JVM (Java Virtual Machine) come packaged along with the Java Development Kit (JDK) that we download and install from the suns website to install Java.