Understanding Java’s Reference classes: SoftReference, WeakReference, and PhantomReference

The Java library documentation for the java.lang.ref package characterizes the decreasing strength of the three explicit reference types. You use a SoftReference when you want the referenced object to stay alive until the host process is running low on memory. The object will not be eligible for collection until the collector needs to free memory. … Read more

Java: difference between strong/soft/weak/phantom reference

Java provides two different types/classes of Reference Objects: strong and weak. Weak Reference Objects can be further divided into soft and phantom. Strong Weak soft phantom Let’s go point by point. Strong Reference Object StringBuilder builder = new StringBuilder(); This is the default type/class of Reference Object, if not differently specified: builder is a strong … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)