wat is final...?
wat is finally...?
wat is finalize....?
difference between " final and finally and finalize "...?
Answer Posted / mmkrish
final --> is a keyword. It will be used for variables,
methods and classes also.
final variables --> Cannot change their value.
final Methods --> Cannot override or overload
final Class --> it can never be subclassed.
finally --> is a block used in exception handling. Genrally
used along with try.catch blocks... though try or catch
block executes...finally block should execute at last.
Means, if we have add finally block, it will call though
there is an exeption occurs.
finalize() --> It is a method. This will be used in garbage
collection of java. It will clear all the unused
resources...Cannot Override. It is a protected method.
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
Can we clone singleton object in java?
Can inner class be public in java?
What is an argument java?
Is it possible to instantiate the abstract class?
List the interfaces which extends collection interface?
What are 5 boolean operators?
Will minecraft java be discontinued?
What are the types of arrays in java?
What is thread life cycle?
What is another word for methodology?
What do you understand by the term string pool?
What is output buffer?
Is java same as core java?
What is a stack class in java ?
Where is stringbuffer stored?