Basic and Advance Java Question:

Download Job Interview Questions and Answers PDF

What is the purpose of the finally clause of a try-catch-finally statement in Java Programming?

Java Interview Question
Java Interview Question

Answer:

The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.

Download Java Interview Questions And Answers PDF

Previous QuestionNext Question
What is the purpose of the System class in Java Programming?What is the Locale class in Java Programming?