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
What are the benefits of operations?
Can we inherit inner class?
What are the two parts of a conditional statement?
How do you check whether the list is empty or not in java?
What about interthread communication and how it takes place in java?
Can we extend a class with private constructor?
What is basic syntax?
What does singleton mean in java?
What is ternary operator?
Is overriding possible in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is object-oriented paradigm?
why doesn't java run on all platforms?
Explain thread life cycle in java?
What is the use of private static?