employer cover photo
employer logo
employer logo

O'Reilly Auto Parts

Is this your company?

O'Reilly Auto Parts Interview Question

What's the difference between final and finally?

Interview Answer

Anonymous

Feb 23, 2019

The final keyword is a modifier on a variable to say that it may not be reassigned a value, a method to say it may not be overridden, or a class to say it may not be extended. The finally keyword is used after a try/catch block to indicate that a block of code should be executed regardless of whether an exception is thrown or not.