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 are methods and how are they defined?

609


How do you insert a line break?

507


What is the size of string?

570


Can a class declared as private be accessed outside it’s package?

517


What all access modifiers are allowed for top class ?

715






Can we create an object of private class?

553


How do you remove spaces in java?

543


What is data object example?

544


Difference between static binding and dynamic binding?

576


What is the importance of static variable?

596


What is the this keyword?

560


How do you write methodology?

570


If try block is successfully executed, Then Is Finally block executed?

617


How does arrays sort work in java?

614


What are the loops in java?

533