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 an immutable object? How do you create one in java?

0 Answers  


what is the difference between yielding and sleeping? : Java thread

0 Answers  


Does sprintf allocate memory?

0 Answers  


what is language and it responsibilities

1 Answers  


What are the data types supported by java?

0 Answers  


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

0 Answers  


What is the difference between call by reference and call by pointer?

0 Answers  


What is the reason behind using constructors and destructors?

0 Answers   HCL,


Is null keyword in java?

0 Answers  


What is final keyword?

0 Answers  


what state does a thread enter when it terminates its processing? : Java thread

0 Answers  


Can a list be null in java?

0 Answers  


Categories