what are the differences between final,finally,finalize
methods?
Answer Posted / ravikiran
final variable:Acts like a constant
final method:cann't be overrided
final class:cann't get subclassed
finally is a block which is used to conserve the resource
irrespective of the exception being caught or not
finalize is the method which is used to save tje resources
before the unused object get garbage collected.
| Is This Answer Correct ? | 55 Yes | 6 No |
Post New Answer View All Answers
What is the simpletimezone class in java programming?
What is the base class for error and exception?
Why do we use return statement?
What is illegal identifier in java?
What a static class can contains?
What is the basic concept of java?
What are the advantages of java over C++?
What is a generic type?
Explain constructors and types of constructors in java.
Is empty in java?
What is the default access specifier for variables and methods of a class?
Describe different states of a thread.
What is the right data type to represent a price in java?
What is instanceof keyword?
What is the difference between JDBC 1.0 and JDBC 2.0?