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

Is there a case when finally will not execute?

779


What is thread safe in java?

745


When the constructor of a class is invoked?

781


What does system out println () do?

791


When is an object subject to garbage collection?

791


What is static import in java?

737


What is difference overloading and overriding?

822


How can you say java is object oriented?

836


What is hashing principle in java?

790


State one difference between a template class and class template.

853


What is a method header?

780


Can we use string in the switch case?

805


What is Session reduplication and how its done?

1783


how to create multithreaded program? : Java thread

717


how to write a program for sending mails between client and server

1822