Explain final, finalize() and finally?
Answer Posted / radhika
Final keyword can be used for class, method and variables.
Afinal method can't be overriden.
Finalize() is used just before an object is destroyed or
garbage collected.
Finally keyword used in Exception handling, creates a block
of code that will be exceuted after a try and catch block.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is anonymous class in java?
What is the difference between yielding and sleeping in java programming?
Why singleton class is used in java?
Objects or references which of them gets garbage collected?
What do you understand by copy constructor in java?
What is a stringbuffer?
What is unicode in java?
What do you mean by platform independence of Java?
Can you override a final method?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
Explain the difference between transient and volatile in java?
What are the types of arrays in java?
What does java ide mean?
How do you take thread dump in java?