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 |
Answer / nashiinformaticssolutions
Command-line arguments are inputs passed to the program at runtime via argc and argv in the main function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Command-line arguments are inputs passed to the program at runtime via argc and argv in the main function.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do negative exponents mean?
Is empty string in java?
Can a main method be overloaded?
How to compare strings in java?
Does sprintf add a null terminator?
What is charat java?
How to make a class or a bean serializable?
How many Java environments are there?
1 Answers Phantom Technologies,
How to display names of all components in a Container?
What class is used to implement a Throwable array?
What is the finalize method do?
How to reverse string in java?