Question: Consider the following Java try / catch / finally block. Under what conditions is the code inside the finally block executed? try { . .

Consider the following Java try/catch/finally block. Under what conditions is the code inside the finally block executed?
try {
...
}
catch (...){
...
}
finally {
...
}
Group of answer choices
Only if an exception is detected
Only if no exception is detected
Always

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!