Explain final, finalize() and finally?
Answer Posted / radhika
Final keyword can be used for class, method and variables.
Afinal method can't be overriden.
Finalize() is used just before an object is destroyed or
garbage collected.
Finally keyword used in Exception handling, creates a block
of code that will be exceuted after a try and catch block.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between actual and formal parameters?
What is %02d?
Can we have multiple public classes in a java source file?
What is the main functionality of the remote reference layer?
What is the formula to calculate percentage?
What is the SimpleTimeZone class?
What is meant by inheritance and what are its advantages?
What is final class?
Why we cannot override static method?
What is the difference between logical data independence and physical data independence?
How to call one constructor from the other constructor ?
Why doesn't the java library use a randomized version of quicksort?
What is regex java?
List some features of the abstract class.
Can you make a constructor final?