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 optional in java 8?

561


Why 1 is not a prime number?

561


What is ternary operator? Give an example.

603


Give some features of interface?

586


What is a method signature java?

575






What is hashing principle in java?

552


What is stack explain?

502


What is meant by tab pans?

648


What is java in layman terms?

529


What does escaping a character mean?

532


What is meant by binding in rmi?

552


What is the effect of keeping a constructor private?

473


Can a constructor have different name than a class name in java?

594


Define how objects are stored in java?

565


What are static variables and functions?

625