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

What do bitwise operators do?

522


worst case complexities of Quick sort and Merge sort.

590


How do you create immutable object in java?

533


Write a program to search a number in the given list of numbers.

624


How can constructor chaining be done by using the super keyword?

609






What is the advantage of OOP in java?

657


What is the difference between path and classpath variables?

518


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

602


Why vector class is used?

534


How to change value in arraylist java?

491


How does regex work?

516


What is ascii code?

634


What is an object’s lock and which object’s have locks?

502


What is difference between array and arraylist in java?

456


What is arrays sort in java?

566