what are the differences between final,finally,finalize
methods?
Answer Posted / ravikiran
final variable:Acts like a constant
final method:cann't be overrided
final class:cann't get subclassed
finally is a block which is used to conserve the resource
irrespective of the exception being caught or not
finalize is the method which is used to save tje resources
before the unused object get garbage collected.
Is This Answer Correct ? | 55 Yes | 6 No |
Post New Answer View All Answers
What is the difference between reader/writer and inputstream/output stream?
Explain the hierarchy of java exception classes?
What is math exp in java?
What are basic keywords?
Why javac is not recognized?
What are the 5 types of research methods?
What is the difference between char and char *?
What is a double vs float?
Can we overload run() method in java?
Can a boolean be null java?
Objects or references which of them gets garbage collected?
Can final class have constructor?
What is the difference between menuitem and checkboxmenu item?
Can an interface implement another interface?
What are the three best choices for a development environment?