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 the full meaning of java?
Why is java called java?
why Interface used?
What are the different ways of creating thread?
Explain the Propertie sof class?
How do you get length in java?
What is difference between this and super keyword?
Does java support function overloading, pointers, structures, unions or linked lists?
Explain exception chaining in java?
What is Hierarchy of exception?
What is boolean in java?
What is a static class in java?
What is immutability in java?
Is java hard to learn?
Does java allow overriding static methods ?