What are command line arguments?
Answers were Sorted based on User's Feedback
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 |
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 is method in java ?
What Method and class used for Connection pooling ?
Can an arraylist be empty?
What is advantage of java?
What is a website container?
Can a class have a static inner class?
Does a class inherit the constructors of its superclass in java programming?
What is character in data type?
What does indexof mean?
What is :: operator in java?
What is volatile data type?
What is anagram number?