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 is palindrome in java?
Explain the importance of finally block in java?
How do you sort a list in java?
Which collection is sorted in java?
placement papaers of spring computing technology
What are the two ways in which thread can be created?
What is the use of predicate in java 8?
What is the difference between preemptive scheduling and time slicing in java programming?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
How do you use compareto in java?
What is the class in java?
Can keyword be used as identifier?
Can we have multiple catch block for a try block?
How do you create immutable object in java?
Is string thread safe in java?