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 use of singleton class?

529


Give a brief description of java socket programming?

532


Name few java util classes introduced with java 8 ?

514


What is array pointers ?

609


How does linkedhashmap work in java?

523






Can a class have an interface?

557


Explain illegalmonitorstateexception and when it will be thrown?

627


What is the protected method modifier?

570


Differece between class and generic class?

568


What is the purpose of javac exe?

566


What is indexof?

549


Explain the difference between an object-oriented programming language and object-based programming language?

551


What is a Null object?

900


What is jrmp?

553


What are different types of references?

537