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 a cup of java?
What is a line break example?
What are the fileinputstream and fileoutputstream?
What is difference between public static and void?
Objects or references which of them gets garbage collected?
Can we define static methods inside interface?
Is assembly language a low level language?
what is abstract class in Java?
Explain notifyall() method of object class ?
What is <> used for in java?
Which is illegal identifier in java?
Difference between collection, collection and collections in java?
What do you mean by Hash Map and Hash Table?
What method is used to specify a container's layout in java programming?
What is the difference between delete and delete[]