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


Please Help Members By Posting Answers For Below Questions

How to sort a collection of custom Objects in Java?

837


Explain wait(), notify() and notifyall() methods of object class ?

827


What is the difference between ArrayList and Vector? which one is better in Java

848


Explain about the select method with an example?

848


What are the types of strings?

793


What are java packages?

818


What is xslt in java?

748


What do you mean by platform independence?

800


What is the diffrence between inner class and nested class?

833


What types of index data structures can you have in java?

875


What is serialization in java?

810


What is the instance of an object?

861


From the two, which would be easier to write: synchronization code for ten threads or two threads?

833


Which is faster string or stringbuilder?

722


What does those terms actually mean included in the j.d.k i.6?

1827