when we have to use final class in java?
Answers were Sorted based on User's Feedback
Answer / rana
A class is said to be final when i dnt want my class to be
extended by any class so that methods implementation cannot
be changed.
For ex String is a final class
| Is This Answer Correct ? | 31 Yes | 3 No |
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
What is the difference between hashmap and hashtable? What is an interface?
Explain about exception propagation?
Difference between overloading and overridding?
Can we sort hashmap in java?
How does singleton class work?
does core java and j2se both are same?
'A class is a template for an object' explain this statement.
0 Answers Akamai Technologies,
What is n in java?
How to implement an arraylist in java?
What is difference between path and classpath?
What is jee6?