what are the differences between final,finally,finalize
methods?
Answer Posted / ambika
final is a keyword.its constant.it cant be changed from its
initiated value.
finally() method used exception handling concept.finally()
block will execute whether or not try block can be execute.
its used to close a file.
finalize is used when an object is just before deleted,it
can be used in garbage collection.
| Is This Answer Correct ? | 96 Yes | 18 No |
Post New Answer View All Answers
List some features of the abstract class.
What do you mean by chromounits in java8?
What is the difference between an inner class and a sub-class?
Difference between abstract and concrete class ?
What is a bufferedreader?
How will you reverse a singly-link list?
What is the difference between iterator and list iterator?
What is the difference between a constructor and a method?
What is boolean query?
How to change the priority of thread or how to set priority of thread?
Explain the overview of UDP messaging.
Can we overload the main() method?
how to create daemon thread in java?
Explain what is Marker interface?
What are the different access modifiers available in java?