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 is final keyword?
Does java support multiple inheritance or not?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Explain java coding standards for interfaces?
Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages
What is the purpose of abstract class?
Is Cegonsoft Pvt.Ltd. a good Institute?
How many types of interfaces are there?
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?
How to sort numbers in java without array?
How many ways can we create singleton class?
How to sort an array from smallest to largest java?