Explain final, finalize() and finally?
Answer Posted / guest
we can declare final for class ,method,varible.
final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.
| Is This Answer Correct ? | 100 Yes | 9 No |
Post New Answer View All Answers
Why heap memory is called heap?
What is an abstract class and what is it’s purpose?
Does java allow overriding static methods ?
What is Java Package and which package is imported by default?
Why local variables are stored in stack?
What is the arraylist in java?
What is remote method invocation (rmi)?
Why java is object oriented?
Can we have two methods in a class with the same name?
What is array sorting in java?
what is heap memory?
Why are functions called methods in java?
What are actual parameters?
What are assembly attributes?
Explain the available thread states in a high-level?