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

Answer Posted / boomiraj

Final:It cant change during execution . Cant be extended.
Finally:It is execute even if execution may (or) may not
come.It must be execute if your declare in program.Can
block finally using System.err(0);statement.
Finalize():It is a garbage collector.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between static and non-static variables in java programming?

523


What is the difference between serial and throughput garbage collector?

588


Explain different forms of polymorphism?

661


What package is math in java?

539


What is fail first in java?

577






What is the best way to findout the time/memory consuming process?

559


What is the difference between multiple processes and multiple threads?

578


Explain different ways of creating a thread?

531


What is meant by object?

583


What are the types of java?

610


Why does my function print none?

524


What are predicates in java 8?

535


What’s meant by anonymous class?

606


What class allows you to read objects directly from a stream in java programming?

516


java Technical questions asked by JPMC

4577