Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Post New Answer



More Core Java Interview Questions

What is the difference between compare and compareto in java?

0 Answers  


What is the difference between JDK and JVM?

0 Answers  


If two threads have same priority which thread will be executed first ?

0 Answers  


how we can make a write-only class in java?

0 Answers  


What is a java list?

0 Answers  






What is difference between call by value and call by reference?

0 Answers  


What is the purpose of an interface?

0 Answers  


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

0 Answers  


What is meant by string is immutable?

0 Answers  


What do you understand by synchronization?

0 Answers  


What is ph and buffers?

0 Answers  


what is the difference between abstract class and Interface?where we can use it in realtime projects?

23 Answers   Agile Software, Cognizant, IBM, Innodata, Logica CMG, Mitosis, Nagarro, Value Chain,






Categories