Question from the Java test

Write a finalizer in Java.

Hard

Given the following code:

private HashMap mapping = new HashMap();
protected void finalize() throws Throwable {
    this.mapping = null;
}

Which answer seems correct ?

Author: Thomas De verdièreStatus: PublishedQuestion passed 2680 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!