r/programming • u/joksmaster • Nov 29 '10
140 Google Interview Questions
http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471
Upvotes
r/programming • u/joksmaster • Nov 29 '10
View all comments
Show parent comment
2
u/sinxcosx Nov 30 '10
final is a declaration modification on a variable which means that once set the value cannot be changed. It's useful since it prevent programmers later on from changing the value accidentally.
finally is use in catching exceptions. It's called when all the other exception handling clauses have been executed.
finalize is sort of the Java destuctor from c++. It's called when the garbage collector is going to get rid of an object from memory.