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
Is a case study a method or methodology?
Can we override private method in java?
What does n mean?
what is aggregation in java?
What do you understand by copy constructor in java?
What does regex mean?
How do you reverse a string in java?
Is vector thread safe in java?
What are the access modifiers in java?
In java, how we can disallow serialization of variables?
describe synchronization in respect to multithreading? : Java thread
Can a class be private or protected in java?
Is array serializable java?
What are the differences between string, stringbuffer and stringbuilder?
Can we overload run() method in java?