What are command line arguments?

Answers were Sorted based on User's Feedback



What are command line arguments?..

Answer / neema

the value which are passed from command line to java
programs main method are called as command line arguements.

Is This Answer Correct ?    6 Yes 0 No

What are command line arguments?..

Answer / ravikiran(aptech mumbai)

command line arguments are the one's which will pass threw
the command prompt

Is This Answer Correct ?    3 Yes 0 No

What are command line arguments?..

Answer / ami singh

ya all people all right
class Amit
{
public static void main(String [] args)
{
for(int i =0;i<args.length;i++)
{
System.ou.println("value" + args[i]);
}
}
javac Amit.java
java Amit asad fgh jkl // value pass through command
value :asad fgh jkl
ami singh amitsing2008@gmail.com

Is This Answer Correct ?    1 Yes 0 No

What are command line arguments?..

Answer / nashiinformaticssolutions

Command-line arguments are inputs passed to the program at runtime via argc and argv in the main function.

Is This Answer Correct ?    0 Yes 0 No

What are command line arguments?..

Answer / hr@tgksolutions.com

Command-line arguments are inputs passed to the program at runtime via argc and argv in the main function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How many objects are created when we create String class object using new operator?

9 Answers   Mind Tree,


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

0 Answers  


What value is a variable of the string type automatically initialized?

0 Answers  


What is 3-tier model?

3 Answers   Wipro,


What is anagram word?

0 Answers  


What is the covariant return type?

0 Answers  


What are autoboxing and unboxing? When does it occur?

0 Answers  


In Java, what are this() and super(), and where are you required to use them?

2 Answers  


we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }

3 Answers  


Variables used in a switch statement can be used with which datatypes?

0 Answers  


How core java/j2ee project performance can be measured ?

1 Answers  


How is object created in java?

5 Answers   Cap Gemini,


Categories