Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the use of reference variable

Answers were Sorted based on User's Feedback



what is the use of reference variable..

Answer / 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

what is the use of reference variable..

Answer / ravikiran(aptech mumbai)

A reference variable is used to refer a particular object
location which resides on a garbage collectable heap

Is This Answer Correct ?    22 Yes 12 No

what is the use of reference variable..

Answer / siri

As Pointers are not safe and secure which allows us to increament or decreament the memory locations such that we can reach the O.S related files.
So to avoid such insecurities we go with Reference Varaibles where we can't increament or decrement memory location of an object.Even if we try to print the address of the object it prints some hash code

Is This Answer Correct ?    8 Yes 0 No

what is the use of reference variable..

Answer / seema yadav

The reference variable is useful in OOP because it permits the manipulation of objects by reference, and eliminates the copying of object parameters back and forth. It is also important to note that reference can be created not only for built_in data types but also for user defined data types such as structures and classes

Is This Answer Correct ?    3 Yes 0 No

what is the use of reference variable..

Answer / aatish maskariya

c++ supports one more type of variable called reference
variable.In addition to pointer variable and value variable
of creference variable behaves similar to both vaule
variable and pointer variable.reference variable has all
acces that variable has.

Is This Answer Correct ?    4 Yes 3 No

what is the use of reference variable..

Answer / venkatachalapathy

A refference variable is a variable which will act as a
adress to a object.... in stack area and the object which
is created will get allocated memory in heap area.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Core Java Interview Questions

Which language is java?

0 Answers  


how to print output with out using sop statements

5 Answers   UHG,


What is the purpose of the enableevents() method in java programming?

0 Answers  


Explain about varargs in java?

0 Answers  


Can we access instance variables within static methods ?

0 Answers  


What is stream api in java8?

0 Answers  


What is the difference between Resultset and Rowset.

6 Answers   IBM, Wipro,


Can an arraylist be empty?

0 Answers  


What is maximum size of arraylist in java?

0 Answers  


How do you declare an array that will hold more than 64KB of data?

0 Answers   Aspire, Infogain,


Can a list be null in java?

0 Answers  


How do you take thread dump in java?

0 Answers  


Categories