adplus-dvertising
frame-decoration

Question

String args[] in main method are used for?

public static void main(String args[])
{
//
}

a.

Passing arguments at compile time

b.

Passing arguments at run time

c.

Counting number of words

d.

Nothing

Posted under Java Programming

Answer: (b).Passing arguments at run time

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. String args[] in main method are used for? public static void main(String args[]) { // }

Similar Questions

Discover Related MCQs

Q. Choose a multiline comment in Java language below?

Q. Choose a Single Line Comment in Java Language below?

Q. What is the use of Access modifier "pubic" in Java language?

Q. In standalone Java applications, which method is mandatory?

Q. What is the need to mention "static" before main method?

Q. All methods and variables in Java language are kept inside a?

Q. A function in C language is similar to what in Java language?

Q. Every statement in Java language should end with a?

Q. What is a Java Editor?

Q. What is the command used to Run a Java program form Command Line or Command Prompt or CMD?

Q. What is the Java command used to compile a java program from Command Line or Command Prompt or CMD?

Q. What is Ahead of Time Compiler in Java?

Q. What is LTS mentioned along with Java Version names like Java SE 11 LTS?

Q. What is the Java distribution type used to build Web Apps in Java?

Q. What are the main Distribution types of Java Software?

Q. What happens in the absence of JIT Compiler in Java?

Q. Choose the correct statement about Java?

Q. What is JIT in Java?

Q. What is Portability offered by Java language?

Q. When was first Version of Java i.e Java 1.0 was released?