Which statement about final, finally, and finalize is correct?
final is used to handle exceptions, finally is used for garbage collection, and finalize prevents modification.
final makes a variable constant, finally ensures execution of cleanup code, and finalize is called before garbage collection.
final is a method, finally is a keyword, and finalize is a block inside try-catch.
final, finally, and finalize all serve the same purpose.
This question is part of this quiz :
Java Exception Handling