Because finalize () belongs to the java.lang.Object class, it is present in all ___.

a)Object
b)Classes
c)Methods
Ans:b.

Identify the true statements about finalization.

a.A class may have only one finalize method
b.Finalizers are mostly used with simple classes
c.Finalizer overloading is not allowed
Ans:a,c.

When you write finalize() method for your class, you are overriding a finalizer inherited from a super class.

a)True
b)False
Ans:a.

Java memory management mechanism garbage collects objects which are no longer referenced

a)True
b)False
Ans:a.

Are objects referenced by a variable candidates for garbage collection when the variable goes out of scope?

a)Yes
b)No
Ans:a.

Java's garbage collector runs as a ___ priority thread waiting for __priority threads to relinquish the processor.

a)High
b)Low
Ans:a,b.

The garbage collector will run immediately when the system is out of memory

a)True
b)False
Ans:a.

You can explicitly drop a object reference by setting the value of a variable whose data type is a reference type to ___

Ans:null

When might your program wish to run the garbage collecter?

a. before it enters a compute-intense section of code
b. before it enters a memory-intense section of code
c. before objects are finalized
d. when it knows there will be some idle time
Ans:a,b,d

For externalizable objects the class is solely responsible for the external format of its contents

a)True
b)False
Ans:a.

When an object is stored, are all of the objects that are reachable from that object stored as well?

a)True
b)False
Ans:a.

Google