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

Why main() method is public, static and void in java ?

0 Answers  


What is a flag value?

0 Answers  


What are the two types of java?

0 Answers  


can any body body expalin best definitions & best real time exaples for opps concepts.

0 Answers   Accel,


What is meant by class loader? How many types are there?

0 Answers  






Can I import same package/class twice?

0 Answers  


Explain the meaning of java applet.

0 Answers   TCS,


In how many ways we can do synchronization in java?

0 Answers  


Outline the major features of java.

0 Answers  


What is thin driver and thick driver. why it is called so?

2 Answers   Logisoft,


What is Distributed Application and what is its usage?

2 Answers  


Why does my function print none?

0 Answers  


Categories