Can i have abstract class with no abstract methods?
Answer Posted / manish kushwaha
HI All,
In Java there is very lovely concept related to Abstract
Class, keep this concept always in your mind i.e.
1) A class can be abstract "without any abstract method".
2) But if a single method is abstract you need to declare
your class as abstract this is mandatory but if class is
abstract then its not mandatory to have abstract methods
as mentioned above.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Is hashmap thread safe?
Why stringbuilder is not thread safe?
What is thread pool in java with example?
What is string array?
Can we have static methods in an interface?
What is the use of string and stringbuffer?
What is mutable object and immutable object?
What does file separator do in java?
What is anagram word?
What is prefix of a string?
What is the r character?
What is the purpose of the enableevents() method in java programming?
Write a program to solve producer consumer problem in java?
What does flag mean in java?
Do extraneous variables affect validity?