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 bufferedwriter?
Can we define private and protected modifiers for variables in interfaces?
What is parameter example?
Why can't you declare a class as protected?
What does \ mean in regex?
What is meant by method?
What is difference between arraylist and list in java?
What is not object oriented programming?
Explain the transient field modifier?
What is JFC?
Does garbage collection occur in permanent generation space in jvm?
Explain heap sort?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Is vector synchronized in java?
What is backdrop?