Answer Posted / artavazd amirkhanyan
It's good question because of most of people can't explain why we can't have abstract final classes in Java. Most of them says "An abstract class is of no use if it cannot be extended or instantiated". Imagine class where we have 10 static methods and we want them to be final to never be overridden. Now, because of class have only static methods,we can make it abstract and because of restriction on overriding, we can make it final. So abstract final classes can be very useful in aforementioned cases. But we can't have abstract final classes in Java just stupidly because of Java do not let us. And this is one of many silly restrictions of Java.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Can you give names of Container classes?
What is the equal sign?
What is number data type in java?
What are predicates in java 8?
What is the purpose of the strictfp keyword?
What is the driver class?
What is map in java?
What does the append?
How big is a 32 bit integer?
What is a local block?
What is null statement?
Write a factorial program using recursion in java?
What are the topics in core java?
Why java is made?
What is data and its types?