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

Answer Posted / ambika

final is a keyword.its constant.it cant be changed from its
initiated value.

finally() method used exception handling concept.finally()
block will execute whether or not try block can be execute.
its used to close a file.

finalize is used when an object is just before deleted,it
can be used in garbage collection.

Is This Answer Correct ?    96 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parsing a string?

588


Why charat is used in java?

540


Is special character in java?

612


Can one thread block the other thread?

604


Can we change the scope of the overridden method in the subclass?

842






Why we use multi threading instead of multiprocessing?

572


Explain the meaning of java applet.

604


What are the five major types of reference sources?

532


What is ascii format?

548


How do you sort objects in java?

513


What is meant by structural programming?

549


What is methodological framework?

573


What do you mean by an object in java?

629


In how many ways we can do exception handling in java?

575


Which class contains a method: cloneable or object?

540