Explain final, finalize() and finally?

Answer Posted / vijay chaudhary

Finally is used with try catch for Exception handling
purposes. Whatever written in Finally will run except if
program exits abnormally.
a Try should have atleast one catch or finally.

Is This Answer Correct ?    23 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concepts of OOPS?

905


What is boolean example?

728


Can a final variable be initialized in constructor?

688


What is extension method in java?

779


What are decalarations?

834


how to run ecllipse with jettyserver for windows environment using batch file

1702


What is the difference between compiler and jvm?

737


Is list thread safe in java?

692


What is byte data type?

750


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1753


What is the maximum length of a url?

708


What do you mean by singleton class in java?

679


What is the use of runnable interface?

821


What is the difference between processes and threads?

735


What is io stream in java?

727