What is "finally" keyword?

Answer Posted / rustam

Finally is a java keyword which define a block that surely executed whether an exception is generated or not. this block
is an optional but it is good to put when we want cleanup the resources.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Presistent Object?

647


What state is a thread in when it is executing?

535


What does method mean?

521


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

658


Is there a way to increase the size of an array after its declaration?

606






What is the main method java?

539


What is math floor in java?

477


What are exceptions

646


Can we override static methods in java?

591


What is the synonym of string?

548


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

602


What are the two ways of implementing multi-threading in java?

824


Which package has light weight components in java programming?

680


What does += mean in java?

580


What is parsing in java?

536