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
Explain the difference between comparator and comparable in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
How many characters is 16 bytes?
What is the declaration statement?
Can a class be declared as static?
What is immutability in java?
Where import statement is used in a java program?
What are the benefits of operations?
What is a stack class in java ?
What are exception handling keywords in java?
What is the difference between interface & abstract class?
What is an example of a conditional statement?
Define an abstract class with reference to java.
What is a nullable field?
What is the difference between import java.util.date and java .util?