What is "finally" keyword?

Answer Posted / taniya

The finally is Java keyword that is used to defined a block
that is always executed in a try-catch-finally statement.It
is use after the try an catch block to handle the unexpected
exception occurred in the try block.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an if statement and a switch statement?

654


what is the final keyword denotes in java?

592


What is the difference between sop and work instruction?

488


explain local datetime api in java8?

562


What is unmodifiable collection in java?

514






What are the 4 versions of java?

565


Can arraylist contain null values?

570


What is the use of pattern in java?

516


What is a map? What are the implementations of map?

574


What is a newline character in java?

568


How do you print array in java?

561


What is map java?

521


What is a loop java?

592


Why java is secure? Explain.

601


What do you mean by global variable?

531