what is the difference between Java Command Line and C
command Line?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are default methods ?

572


Is java written in c?

538


Explain a situation where finally block will not be executed?

570


What are the differences between throw and throws?

526


What does next mean in java?

533






what is singleton class in java?

619


What do you mean by an interface in java?

569


What happens if an exception is throws from an object's destructor?

579


Why do we need strings in java?

521


What is difference between Heap and Stack Memory?

534


What is return type in java?

628


What are the access modifiers available in java?

558


Why are the methods of the math class static?

576


Explain the difference between a Thread and a Process.

556


What are java packages? What's the significance of packages?

620