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 a nullable field?

0 Answers  


What flag up means?

0 Answers  


What is the += operator called?

0 Answers  


Can a Byte object be cast to a double value?

3 Answers   KO,


can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?

1 Answers   Systematix,






To set the position and size of a component, which methods are used?

3 Answers  


What is a locale?

0 Answers   Aspire, Infogain,


What is multithreading in java?

0 Answers  


What is meant by binding in rmi?

0 Answers  


What is the purpose of default constructor?

0 Answers  


Can each java object keep track of all the threads that want to exclusively access it?

0 Answers  


Can a constructor call the constructor of parent class?

0 Answers  


Categories