I have two classes
Class A { //constructor } Class B { private A a; public B() { a = new A(); } }
Suppose I u
There are also some flags you can use when running a Java program (at least with the Sun JVM) that will give some debugging information about what goes on during garbage collection. Try the -verbose:gc option.
http://download.oracle.com/javase/6/docs/technotes/tools/solaris/java.html