What is "finally" keyword?

Answer Posted / piyush pathak

finally :
finally is a java keyword.It is a block of statement which
is executed surley after the try-catch block whether method
returns normally or throws an exception.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a variable be local and static at the same time?

646


Why spring singleton is not thread safe?

653


What is a null class?

662


What are the main concepts of oops in java?

813


How do you achieve singleton?

614






Difference between abstract and concrete class ?

664


What is data type example?

648


Garbage collection in java?

693


What are the main uses of java?

621


Can you tell me range of byte?

639


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

793


What is the purpose of a default constructor?

672


What is polymorphism java example?

641


What are the Static and Dynamic Variables? Differentiate them.

693


Write a java program to count the number of words present in a string?

610