Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What are the different reference types available in Java? e.g. WeakReference, SoftReference or PhantomReference? and Why should we use them?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2013/09/17
Feras Elias
by Feras Elias , Technical Support Officer , Legal Affairs Department

  • reference types are any instantiable class as well as arrays
    • String, Scanner, Random, Die, int[], String[], etc.
    • reference variables store addresses

It's useful to play with variables and types a little.