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 difference between string and stringbuffer?
What are different type of exceptions in java?
What is a locale?
Can we override private method in java?
What is the difference between class & object?
How do you include a string in java?
Is treeset sorted in java?
How does the java compiler work?
What are the 7 types of characters?
Difference between current previous versions of Java?
Is boolean a wrapper class in java?
Which class is the superclass of all classes?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is classes in java?
What is an accessor?