what are the differences between final,finally,finalize
methods?

Answer Posted / brijendra(xavient)

1-Final:Java have final class,finalmethod and
finalvariables.
*Finalclass can not be extended and the variables under the
final class can not be change.
*Finalvariables can not be changed.
*finalmethods can not be override or overriden.

2-Finally-Finally is a block which is used for catching the
uncaught exception which not handled by try block.

3-Finalize()- finalize method helps in garbage collection.A
method,that is invoked before an object is discarded by the
garbage
collector, allowing it to clean up its state

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is singleton pattern used?

532


What is the maximum size of list in java?

547


What is java virtual machine? Explain

571


What is the difference between Array and Hash Table?

549


Name component subclasses that support painting in java programming?

640






How many days will it take to learn java?

521


Detail discussions on JVM, memory management and garbage collector.

560


How to use arraylist in java netbeans?

514


Can we clone singleton object?

567


What is the use of System class?

614


What is bufferedwriter?

542


Differences between C and Java?

621


What is adapter in java?

521


What is the use of jtable?

652


Does java have a compiler?

561