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 |
How many objects are created when we create String class object using new operator?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What value is a variable of the string type automatically initialized?
What is 3-tier model?
What is anagram word?
What is the covariant return type?
What are autoboxing and unboxing? When does it occur?
In Java, what are this() and super(), and where are you required to use them?
we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }
Variables used in a switch statement can be used with which datatypes?
How core java/j2ee project performance can be measured ?
How is object created in java?