what is the use of reference variable

Answer Posted / venkatesh

reference will act as variable to point an object. Instead
of giving direct memory location(using pointers)to the
programmer java internally converted them into references,
so that java can avoid memory leaks and increase performance
in accessing object.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Linked list and Queue?

613


What is a instance variable?

592


What is java used for on a computer?

517


what is meant wrapper classes?

619


Who is the owner of java?

549






What is a nonetype?

571


What is nullpointerexception in java?

534


What is a treeset class?

569


Explain polymorphism citing an example.

604


What's the base class in java from which all classes are derived?

753


What is local class in java?

530


Why deletion in linkedlist is fast than arraylist?

544


Explain enumeration in java?

580


How will you call an Applet using Java Script Function?

548


What are predicates in java 8?

545