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
When can you say a graph to be a tree?
What are the parts of a method?
Which is easier netbeans or eclipse?
What is currentthread()?
How do you bind variables?
Can we override the static methods?
How do you delete a list in java?
What is the difference between serializable and externalizable interfaces?
What is keyset in java?
What is mutable object and immutable object?
What is the purpose of methodology?
What are loops in java? What are three types of loops?
Can we use string in switch case in java?
Explain the difference between an object-oriented programming language and object-based programming language?
When should a function throw an exception?