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 method in java ?

0 Answers  


What Method and class used for Connection pooling ?

5 Answers   TCS, Wipro,


Can an arraylist be empty?

0 Answers  


What is advantage of java?

0 Answers  


What is a website container?

0 Answers  






Can a class have a static inner class?

0 Answers  


Does a class inherit the constructors of its superclass in java programming?

0 Answers  


What is character in data type?

0 Answers  


What does indexof mean?

0 Answers  


What is :: operator in java?

0 Answers  


What is volatile data type?

0 Answers  


What is anagram number?

0 Answers  


Categories