News

In my previous article, I described how to use Java’s reference objects, SoftReference and WeakReference, to build weak references and mark blocks as reclaimable in a simple application.
Many core Java classes and objects implement the Comparable interface, which means we don’t have to implement the compareTo() logic for those classes. Here are a few familiar examples: ...