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 |
Is it possible to compare various strings with the help of == operator?
Differentiate between stringbuffer and stringbuilder in java.
How can I become a good programmer?
What are non-access modifiers?
If circular link of two objects, then will it be garbage collected ?
Write a program to print fibonacci series up to count 10.
What are local variables?
What is static import in java?
What is a deadlock ?
Ducking is automatic in checked exception?True or false
What is comparable and comparator interface? List their differences
Is hashset sorted in java?