what is the difference between a java object reference and
c++ pointer?

Answer Posted / chandra prakash sahu

Both have same purpose,becoz both point some memory location
,they hold the address of that location.Java reference
variable point the memory location of an object whereas C++
ponter point the memory location of any primitive type of
data type.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we sort hashmap in java?

738


What is meant by null and void?

742


What is the meaning of variable in research?

775


Can you explain the private protected field modifier?

788


What is core java called?

727


Can a string be null?

741


Explain the difference between comparator and comparable in java?

691


What are the three parts of a lambda expression?

752


What are the types of relation?

801


What is the difference between abstraction and encapsulation?

793


explain the concept of virtual method invocation in polymorphism in detail?

1941


What are the important features of Java 9 release?

761


Explain the importance of finally block in java?

750


How do you use compareto?

719


Whats the difference between notify() and notifyall()?

797