Argument passing, values and references, the following is true: In C you can cre
ID: 3743079 • Letter: A
Question
Argument passing, values and references, the following is true: In C you can create a reference (i.e. a pointer) to an int but not in JAVA In JAVA arguments are passed as values Primitive datatypes are easily mapped to the native datatypes of the hardware and thus more efficient A reference in JAVA is something which refers to where in memory something is stored An array or an object are always referred to by a reference Primitive datatypes are int, double, char etc. In JAVA arguments are passed as references One can create a reference to all types of variables/objects in JAVA Integer and Double are primitive data typesExplanation / Answer
If you have any doubts, please give me comment...
In C you can create a reference(i.e., pointer) to an int but not in JAVA
In JAVA arguments are passed as values
Primitive datatypes are easily mapped to the native datatypes of the hardware and thus more efficient
An array or an object are always referred to by a reference
Primitive datatypes are int, double, char etc...