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
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is prefix of a string?
What is method in research paper?
What does g mean in regex?
What is type conversion in java?
How are destructors defined in java?
What is the use of static class?
What is ‘has a’’ relationship in java?
For class CFoo { }; what default methods will the compiler generate for you>?
why java uses class level type casting ?
List any five features of java?
How do you define a set in java?
Mention some interfaces implemented by linked list in java.
What is collection sort in java?
Can we print null in java?