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
What is use of valueof () in java?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is hashing principle in java?
How many types of memory areas are allocated by JVM in java?
Can a abstract class be declared final?
Does java linked list allow duplicates?
what is comparable and comparator interface?
What is the difference between the final method and abstract method?
Difference between overriding and overloading in java?
How does hashset works in java?
What are the restrictions imposed on method overriding?
Tell some latest versions in JAVA related areas?
Explain about main() method in java ?
What are the advantages of java over C++?
Whats the difference between notify() and notifyall()?