Explain final, finalize() and finally?
Answer Posted / guest
we can declare final for class ,method,varible.
final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.
| Is This Answer Correct ? | 100 Yes | 9 No |
Post New Answer View All Answers
What are the differences between heap and stack memory?
How many days will it take to learn java?
What do you mean by inner class in java? Explain
Is null false in java?
Explain when classnotfoundexception will be raised ?
What is array pointers ?
What does indexof mean?
How is hashcode calculated in java?
What is data and its types?
Explain the difference between intermediate and terminal operations in java8?
How are variables stored in memory?
Which package has light weight components?
What is the similarity between dynamic binding and linking?
Difference between final and effectively final ?
What is the difference between && and & in java?