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

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More Core Java Interview Questions

What is primitive data type in java?

0 Answers  


System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0

8 Answers   Accenture,


What is use of static method?

0 Answers  


what are the states associated in the thread? : Java thread

0 Answers  


What is an infinite loop?

0 Answers  






Explain working of call by reference function invoking.

0 Answers   Amdocs,


What is an infinite loop in java? Explain with an example.

0 Answers  


How do you square a number?

0 Answers  


What is busy spin, and why should you use it?

0 Answers  


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

0 Answers  


what is the difference between the methods sleep() and wait()? : Java thread

0 Answers  


Why parsing is done?

0 Answers  


Categories