1. finalize() will run AT MOST once for any object if at all. That depends on if the JVM will run gc on those gc-able object or not. 2. finalize() might NOT be run just before gc, this is becuase you can save the object reference during finalize(). Then the object will go back to the alive pool, the next time it's become gc-able, finalize will not run, even know it will get gc-ed this time around.
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, the permaculture playing cards