BlackBerry Interview Question: What is the difference betwee... | Glassdoor

Interview Question

Software Developer Co-Op Interview Ottawa, ON (Canada)

What is the difference between final, finally and finalize?

Tags:
java
Answer

Interview Answer

1 Answer

0

A final class can not be subclassed. A final variable can not be assigned another value.
finally is a clause of a try block that will always be run.
finalize() will be called by the garbage collector when it removes a class that no longer has references.

Anonymous on Mar 14, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.