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 are the ways in which a thread can enter the waiting state?
What is a Transient Object?
What is final variable?
What’s the difference between callable and runnable?
Why does abstract class have constructor?
Is char * a string?
What is the difference between menuitem and checkboxmenu item?
What is difference between core java and java ee?
Explain about assignment statement?
What is methodological framework?
How to create com object in Java?
How arrays are stored in memory in java?
What is multiple inheritance? Is it supported by java?
What are the different ways to handle exceptions?
What flag up means?