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

Can variables be used in java without initialization?

539


What do negative exponents mean?

533


What is stack explain?

488


What is an example of procedure?

499


Which is better arraylist or vector?

559






What are the restrictions that are applied to the java static methods?

513


Can we write method inside a method in java?

511


What is a website container?

491


Explain the Propertie sof class?

571


What is a substitution variable?

547


Explain with example the concept of constant variable in java.

602


Which collection allows duplicate values in java?

529


What is assembly used for?

487


Can you explain the meaning of aggregation and composition

559


When super keyword is used?

575