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

Explain the differences between static and dynamic variables?

876


Can we use a switch statement with strings?

787


Which is better stringbuffer or stringbuilder?

730


Is null a string in java?

771


What is the replace tool?

782


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

783


How do you do math powers in java?

830


Explain the difference between association, aggregation and inheritance relationships.

834


What is meant by stack and queue?

794


What is stack explain?

705


When we serialize an object does the serialization mechanism saves its references too?

749


What is a flag and how does it work?

763


What is illegal identifier in java?

778


How do you use find and replace?

718


Is java 11 paid version?

740