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 math floor in java?

470


How many types of voids are there?

535


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

513


What is the purpose of static methods and variables?

529


What is a final class ?

601






What is int lol?

592


Is string pool garbage collected?

545


What is mnemonic in assembly language?

549


What are the restrictions imposed on method overriding?

550


Is assembly language a low level language?

492


What is a singleton in genetics?

560


Explain about automatic type conversion in java?

565


Which class contains a method: cloneable or object?

538


What is mean by collections in java?

562


What is a map in java?

548