what is the difference between Java Command Line and C
command Line?
Answers were Sorted based on User's Feedback
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 |
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 |
what is private constructor?what are the uses of writing private constructor in our program?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
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. (
What is a buffer in java?
can we take more than one null values for Unique constraints.
what is platform dependent translation and platform dependent programming language
What is the maximum size of hashmap in java?
Can inner class final?
What is the middleware?
Is space a string in java?
What does g mean in regex?
How can we create a object of a class without using new operator.