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

Define locale.

830


What is the syntax and characteristics of a lambda expression?

819


Explain about member inner classes?

826


What is the difference between the final method and abstract method?

800


Define nashorn in java8.

815


What is a jit compiler?

893


What is the indent key?

820


Why collection is called framework in java?

747


What are different types of multitasking?

750


How will you serialize a singleton class without violating singleton pattern?

1754


Is java type safe?

766


How will you initialize an Applet?

863


How do you check if a string is lexicographically in java?

746


How do you check if two strings are equal in java?

820


What is a functional interface?

778