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


Please Help Members By Posting Answers For Below Questions

What are the benefits of operations?

503


Can we inherit inner class?

513


What are the two parts of a conditional statement?

503


How do you check whether the list is empty or not in java?

502


What about interthread communication and how it takes place in java?

534






Can we extend a class with private constructor?

517


What is basic syntax?

537


What does singleton mean in java?

501


What is ternary operator?

557


Is overriding possible in java?

493


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

529


What is object-oriented paradigm?

606


why doesn't java run on all platforms?

558


Explain thread life cycle in java?

577


What is the use of private static?

524