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

Explain about core java?

618


How do I start learning java?

553


What is the difference between JDBC 1.0 and JDBC 2.0?

2700


what are three ways in which a thread can enter the waiting state? : Java thread

570


Can you pass by reference in java?

522






Which number is denoted by leading 0x or 0x in java?

553


Explain java code for recursive solution's base case?

566


What language is an assembler written in?

545


What is singleton class example?

582


Can a final variable be manipulated in java?

524


Can we have any other return type than void for main method?

534


Is java 9 released?

519


What is collection api?

602


How do you find the absolute value?

557


Can we convert stringbuffer to string?

561