what is the difference between Java Command Line and C
command Line?
Answers were Sorted based on User's Feedback
Answer / sunitha
In C and C++ when you invoke a program, the system passes
two parameters to it:
argc--the number of arguments on the command line
argv--a pointer to an array of strings that contain the
arguments
When you invoke a Java application, the system only passes
one parameter to it:
args--an array of Strings (just an array--not a pointer to
an array) that contain the arguments
| Is This Answer Correct ? | 26 Yes | 4 No |
Answer / ankit goyal
In C and C++ when you invoke a program, the system passes
two parameters to it:
argc--the number of arguments on the command line
argv--a pointer to an array of strings that contain the
arguments
When you invoke a Java application, the system does not pass any argument to it.
if passes the arguments in an array of Strings if and only if the arguments are given by the user.
otherwise system does not pas any argument.
| Is This Answer Correct ? | 1 Yes | 0 No |
What are assembly attributes?
how can u apply shallow cloning and deep cloning to create object?
Difference between the String and StringBuffer classes?
What are constants?
How do you load an HTML page from an Applet ?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
How do you ensure that n threads can access n resources without deadlock?
can we have virtual functions in java?
How to decrease number of hashings in has
Linked List reverese program
What is singleton pattern?
Explain yield() method in thread class ?