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

Why singleton pattern is better than creating singleton class with static instance?

538


Does java support multiple inheritance or not?

603


Explain the Propertie sof class?

586


What is difference between public static and void?

486


What are some characteristics of interference class?

517






How do you download stubs from Remote place?

1359


What do you understand by a Static Variable?

630


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

562


What are keywords give examples?

581


How can we break singleton in java?

525


What does the “static” keyword mean? Can you override private or static method in java?

633


how is final different from finally and finalize in java?

608


What is the difference between error and an exception?

569


What are generic methods?

535


Can private class be inherited in java?

549