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
How transient variable is different from volatile variable?
What is double in java?
hr interview how many minutes asking question
What happens if an exception is throws from an object's destructor?
why are there separate wait and sleep methods? : Java thread
How do you define a parameter?
List primitive java types?
Can an abstract class be a final class?
How do you classify Dialog Box?
Is main a function?
Is java a prime method?
What is an accessor?
Can a string be null?
Can we use synchronized block for primitives?
Mention some interfaces implemented by linked list in java.