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
What are methods and how are they defined?
How do you insert a line break?
What is the size of string?
Can a class declared as private be accessed outside it’s package?
What all access modifiers are allowed for top class ?
Can we create an object of private class?
How do you remove spaces in java?
What is data object example?
Difference between static binding and dynamic binding?
What is the importance of static variable?
What is the this keyword?
How do you write methodology?
If try block is successfully executed, Then Is Finally block executed?
How does arrays sort work in java?
What are the loops in java?