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
What is the use of arraylist in java?
whatis Home interface and Remoteinterface? with example?
How to use arraylist in java netbeans?
What is a variable analysis?
What is java util list?
What is the difference between class & object?
What are the ways to instantiate the class class?
Explain the significance of listiterator.
How will you communicate between two applets?
What is parseint?
What does jre stand for?
What are the three parts of a lambda expression? What is the type of lambda expression?
How do you sort data in java?
In how many ways we can do synchronization in java?
How to do a true java ping from windows?