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 the advantages of user defined functions?
What is a line break example?
Explain the difference between hashmap and hashtable in java?
What are inner classes or non static nested classes in java?
Explain the difference between map and flatmap stream operation?
What is linked hashset and its features?
how come we know the object is no more used in the class?
Can you pass functions in java?
Explain constructors and types of constructors in java.
What happens if main method is not static?
Which is faster call by value or call by reference?
Why for each loop is used?
How to sort an array from smallest to largest java?
What is an enumeration?
Why vector is used in java?