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 does += mean coding?
Is hashset ordered?
How do you sort an array in java?
What does 3 dots mean in java?
Explain the importance of import keyword in java?
Can a hashset contain duplicates java?
What is the argument in java?
What kind of variables can a class consist?
What is meant by structural programming?
What is data movement?
What is difference between core java and java ee?
What is the final keyword?
What is the primary benefit of encapsulation?
What is a hashmap used for?
Why webdriver is an interface?