What are command line arguments?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are basic data types?

565


What is the difference between ArrayList and Vector? which one is better in Java

613


How does thread synchronization occurs inside a monitor?

559


What is the largest long allowed by java?

541


State differences between C and Java?

669






What is factor r?

529


Can the interface be final?

584


What is 16 bits called?

505


What is the main purpose of serialization in java?

534


Why do we use threads in java?

573


Why are functions called methods in java?

538


What is type safety in java?

494


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

505


What is the final field modifier?

552


What is boolean keyword in java?

609