wat is final...?
wat is finally...?
wat is finalize....?
difference between " final and finally and finalize "...?
Answer Posted / chaithanya
Final:It is a keyword,constant like c/C++.suppose if we declare a=1,we cannot change that value over the programme.we cannot declare a++.
Finally():It is default block in exception handling.
Finalize():if an object holds non java resources,it must be releases resources before object is destroyed.called garbage collector.it runs periodically.we don't know when gc runs
so the programmer write in manually in finalise method invoked the gc before object is destroyed
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you identify if jvm is 32-bit or 64-bit from java program?
What is scanner in java?
What is regex java?
Can we declare the static variables and methods in an abstract class?
Why do we need variables?
How to restrict a member of a class from inheriting by its sub classes?
Differentiate between vector and array list.
What is the difference between notify and notifyall method?
What is a stack class in java ?
When do we use synchronized methods in java?
What is passing value java?
What package is math in java?
What is static and final keyword in java?
Explain the difference between intermediate and terminal operations in java8?
What is consumer interface?