Latest Answer : We need not call the finalize() method directly. The method is called automatically by the garbage collector when it determines no more references to the object exist. But when we need to clean-up non-Java resources ie closing a file, we need ...
Latest Answer : the object that has no reference is assumed to no longer used. so to reclaim its memory garbage collection is used. ...
Latest Answer : least priority thread ...
The finalize() method will always be invoked once before the object is garbagecollected. However, the finalize() method might never be invoked for an object in itslifetime, because there is no guarantee that it will get garbage collected.Then what is the use of the finalize() method? Why should we use it?
i don't know
Latest Answer : where we use iterator than enumeration in collection interface? ...
A) Daemon thread is a low priority threadB) It runs intermittently in the backgroundC) It does the garbage collection operation for the java runtime system.D) All of the above
Latest Answer : All of the above(D) is correct answer. ...
A) low-priorityB) highest priorityC) medium priorityD) decided at runtime
Latest Answer : Low-priority thread ...
When an object is referenced, does this mean that it has been identified by the finalizer method for garbage collection?
A) TrueB) False
Java's garbage collector runs as a ___ priority thread waiting for __priority threads to relinquish the processor.1.high 2.lowChoose the correct sequence
A) 1, 2B) 1, 1C) 2, 2D) 2, 1