adplus-dvertising
frame-decoration

Question

What is the use of the ‘finally’ keyword?

a.

It used to execute at the starting of the program

b.

It will be executed at the end of the program even if the exception arised

c.

It will be executed at the starting of the program even if the exception arised

d.

none of the mentioned

Answer: (b).It will be executed at the end of the program even if the exception arised

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the use of the ‘finally’ keyword?