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 use of beaninfo?
What is assembly language?
What is a wrapper method?
explain the difference between jdk and jvm?
What are the basic control structures?
How to convert string to byte array and vice versa?
Have you ever used hashtable and dictionary?
Does windows 10 need java?
How does system arraycopy work in java?
What two classes are used to read data only?
Difference between association, composition and aggregation?
What is the inheritance?
Convert a BST into a DLL and DLL to BST in place.
Is vector thread safe in java?
Should a main method be compulsorily declared in all java classes?