They usually happen during the early hours of the morning, shortly before the
code needs to ship: exception errors. . . .
Take the following , for example. Ever seen this before?
Exception in thread "main" java.lang.OutOfMemoryError
at OutMem.main(OutMem.java, Co
In the past, developers didn't have much control over garbage collection or
memory management. Java2 has changed that by introducing the java.lang.ref
package. The abstract base class Reference is inherited by classes
SoftReference, WeakReference and PhantomReference. SoftReferences are well
suited for use in applications needing to perform caching. WeakReferences are
generally used to canonicalize several references to a single object.
PhantomReferences are the "weakest" type of reference and can be used for
re... (more)