sample program to see the garbage collection notifications (java 7 and later)