Strong Reference
Regular variables that are in JVM memory until the program completed
Soft Reference
They are taking out of JVM memory when JVM gets full.
Weak Reference
They stay in memory until it is Garbage Collection is called by user/automatically.
Phantom Reference
Cannot get the value by using normal get method - it stays in reference queue and not in JVM
DEADLOCK
JConsole or VisualVM are the tolls - Kill -3 is the command
Regular variables that are in JVM memory until the program completed
Soft Reference
They are taking out of JVM memory when JVM gets full.
Weak Reference
They stay in memory until it is Garbage Collection is called by user/automatically.
Phantom Reference
Cannot get the value by using normal get method - it stays in reference queue and not in JVM
DEADLOCK
JConsole or VisualVM are the tolls - Kill -3 is the command