import java.lang.ref.SoftReference;
public class Main {
public static void main(String[] argv) throws Exception {
SoftReference sr = new SoftReference("object");
Object o = sr.get();
if (o != null) {
System.out.println(o);
} else {
System.out.println("collected or has been reclaimed");
}
}
}