What is finally in exception handling?

Answer Posted / valarmathi

finally is a specialized keyword used in exception handling.
finally is nothing which is given at the end of the
program. it is executed at the last. eventhough an
exception occurs after displaying all the exceptions this
finally block will be displayed. i.e, it is used to
terminate the program.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how are methods defined?

555


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

512


What are the two types of exceptions in java? Which are the differences between them?

517


What is object-oriented paradigm?

619


What methods are used to get and set the text label displayed by a button object?

558






What are peerless components in java programming?

587


What are strings in physics?

549


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

576


Explain some best practices you would apply while using collection in java?

572


How do you remove an object from an arraylist in java?

467


What if I write static public void instead of public static void in java?

583


How do you control extraneous variables?

510


Are arrays primitive data types?

642


What is the use of using enum to declare a constant?

560


How many digits is int32?

540