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
Explain about the interpreter in java?
Define nashorn in java8.
what is the significance of listiterator in java?
Where is the find and replace?
Are functions objects in java?
What are different types of multitasking?
How do you start a thread?
Why singleton is not thread safe?
Write a java program to check if a number is prime or not?
What are the differences between include directive and include action?
What is %d in printf?
What is the difference between access specifiers and access modifiers in java? 16
What is instanceof keyword?
Give us the name of the list layoutmanagers in java?
Can you explain the cs option of java interpreter?