If you override finalize(), make it protected. If you make it public, other classes may call it.