what is the use of reference variable

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the difference between string, string builder, and string buffer in java?

845


How can you make a class serializable in java?

774


What is the size of a string in java?

738


What is procedure writing?

695


How do you differentiate abstract class from interface?

739


What is an 8 bit word?

803


Difference between start() and run() method of thread class?

816


What is meant by method overriding?

790


What is difference between Heap and Stack Memory?

747


What is an escape character in java?

779


Why spring singleton is not thread safe?

755


How do you sort in descending order in java using collections sort?

711


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1676


Is an empty arraylist null?

803


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1636