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
Give a practical example of singleton class usage?
Why do people says “java is robust”?
design an lru cache in java?
Can you explain the meaning of aggregation and composition
How do I get 64 bit java?
What is generics in java interview questions?
why Java does not support multiple inheritances?
What are the types of casting?
What is n in java?
What is array initialization in java?
What is java literals?
What is the difference between stringbuffer and stringbuilder?
What is the name of the java compiler?
what are Hostile Applets?
How hashmap increases its size in java?