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
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
Can you inherit a constructor java?
What is 32 bit float?
What language is java written?
How to make object serializable in java?
What is difference between final and finally in java?
Is space a char?
Discuss different types of errors that generally occur while programming.
How many decimal places is a double?
Explain methods specific to list interface?
Can we have multiple catch block for a try block?
What is quick sort in java?
Can we extend immutable class?
What is struts in java?
What is difference between hashset and hashmap?