What are command line arguments?

Answers were Sorted based on User's Feedback



What are command line arguments?..

Answer / neema

the value which are passed from command line to java
programs main method are called as command line arguements.

Is This Answer Correct ?    6 Yes 0 No

What are command line arguments?..

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

What are command line arguments?..

Answer / 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

What are command line arguments?..

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

What are command line arguments?..

Answer / hr@tgksolutions.com

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

Post New Answer

More Core Java Interview Questions

What does indexof mean?

0 Answers  


What is this () in java?

0 Answers  


What is the generic class?

0 Answers  


What is Hierarchy of exception?

0 Answers   Amdocs,


can any body body expalin best definitions & best real time exaples for opps concepts.

0 Answers   Accel,






Does collectionutils isempty check for null?

0 Answers  


What do you understand by access specifiers in Java?

0 Answers   Genpact,


How do I compare two strings in word in java?

0 Answers  


What classes of exceptions may be caught by a catch clause in java programming?

0 Answers  


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


What is Exception handling in Java How do you handle run time errors please explain with an example

2 Answers   Mastek, TCS,


whatis Home interface and Remoteinterface? with example?

0 Answers   Saksoft,


Categories