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 getclass () getname () in java?
How is abstraction implemented in java ?
Write a code to show a static variable?
How does the java compiler work?
What's the default access specifier for variables and methods of a class?
What is a singleton factory?
Can we override private method?
Can we use a switch statement with strings?
How many types of interfaces are there?
What are the escape sequences in java?
Why Java doesn’t support multiple inheritance?
What is meant by binding in rmi?
What is an object in java?
What is stringwriter?
Can we able to pass objects as an arguments in java?