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 causes memory leak in java?
Define "Access specifiers" in java.
What is static keyword in java?
What is meant by attribute?
What are the main uses of java?
What are the Static and Dynamic Variables? Differentiate them.
why java does not support unsigned keyword?
What 4 doubled?
What is the synonym of string?
Can we override constructors?
What is Recursion Function?
What does nextint () do in java?
Can we sort a map in java?
What is the largest long allowed by java?
What is difference between fileinputstream and filereader in java?