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 private constructor?what are the uses of writing private constructor in our program?

10 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

0 Answers  


What is a buffer in java?

0 Answers  


can we take more than one null values for Unique constraints.

1 Answers   3i Infotech,






what is platform dependent translation and platform dependent programming language

2 Answers  


What is the maximum size of hashmap in java?

0 Answers  


Can inner class final?

0 Answers  


What is the middleware?

2 Answers  


Is space a string in java?

0 Answers  


What does g mean in regex?

0 Answers  


How can we create a object of a class without using new operator.

1 Answers   Infosys, Nokia,


Categories