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

Post New Answer

More Core Java Interview Questions

What is main function purpose?

0 Answers  


Can a function return a function?

0 Answers  


What is the symbol for line break?

0 Answers  


What is the use of runnable interface?

0 Answers  


What is the use of default method in interface in java? Explain

0 Answers  






When a byte datatype is used?

0 Answers  


what questions are been asked ??? for interview in apti

0 Answers  


What do you mean by ternary operator in java?

0 Answers  


List out benefits of object oriented programming language?

0 Answers  


explain the clone method and clonable interface

1 Answers  


Explain methods specific to list interface?

0 Answers  


What is a blocking method in Java?

0 Answers  


Categories