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
What is the use of generics? When was it added to the Java development Kit?
What are predefined functions?
What is io stream in java?
What is the different between get and post?
Is java hard to learn?
What is java reflection api?
What is an abstract method in java programming?
What is integer valueof?
Why does abstract class have constructor?
What does ide stand for?
What is a null check?
how its run?
What is the preferred size of a component in java programming?
What loop means?
How do you ensure that n threads can access n resources without deadlock?