Can finalize be called after a constructor throws an exception?
问题 Are there any details on whether or not an object is cleaned up using finalize() if that object's constructor thew an exception. When this method is called is notoriously ill defined. According to the manual: The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught