what are the differences between final,finally,finalize
methods?
Answer Posted / raghavendra
final key word is a modifier,and you cant perform any
modifications
finally : finally is used one type exception.suppose any
exception is generated,closed entire program suddenly,so
damage the remain information.overcome this disadvantage
introduce the finally key word.you write any information in
finally block,the information is successfully executed
finalize:this is one type of garbage collector,this key can
be used to collected unused memory
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is meant by vector class, dictionary class, hash table class, and property class?
Is double bigger than float?
Is there any case when finally will not be executed?
What do you understand by the term polymorphism?
What is the association?
What is meant by class loader? How many types are there? When will we use them?
What is the best way to findout the time/memory consuming process?
What does a boolean method return?
Is stringwriter thread safe?
What is jit and its use?
What is the effect of keeping a constructor private?
What causes memory leak in java?
Explain the JDB in depth & command line.
What is a Hash Table? What are the advantages of using a hash table?
What is meant by object?