what is the difference between a java object reference and
c++ pointer?
Answer Posted / ranabir chakraborty
both are the same concept the java object reference and c++
pointer.the object reference stored in the memory heap and
object are stored in stack.
Pointer are locate the address of the variables and object
reference locate the value of the variables.
| Is This Answer Correct ? | 11 Yes | 15 No |
Post New Answer View All Answers
Can we sort list in java?
Can we execute a program without main() method?
How to stop a thread in java? Explain about sleep () method in a thread?
Why doesn't the java library use a randomized version of quicksort?
Can we declare a class as abstract without having any abstract method?
What is preparedstatement in java?
What are the loops in java?
what do you mean by java annotations?
What are the files generated after using IDL to java compiler?
What is an anonymous class in java?
Can we override the static method?
Do loops java?
Why is inheritance used in java?
What is a variable simple definition?
Similarity and difference between static block and static method ?