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 is java virtual machine and how it is considered in context of java’s platform independent feature?

655


What is a flag value?

519


What about instanceof operator in java?

599


Why do we use return statement?

541


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

664






What access modifiers can be used for methods?

559


Can we define private and protected modifiers for variables in interfaces?

582


Can we restart a dead thread in java?

554


What is variable explain with example?

570


How do you declare a destructor in java?

506


What is super?

585


what is encapsulation in java? Explain

663


How will you initialize an Applet?

621


What is functional interface in javatpoint?

514


explain copyonwritearraylist and when do we use copyonwritearraylist?

543