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
In which language java is written?
How do you know if a value is nan?
What is the difference between the ">>" and " >>>" operators in java?
What 4 doubled?
Why is singleton not thread safe?
What is "this" keyword in java? Explain
Does java have a compiler?
How to instantiate member inner class?
Can a boolean be null java?
What is the difference between a switch statement and an if statement?
please send me hr interview questions in it industry
What are the default and parameterized constructors?
How transient variable is different from volatile variable?
Difference between linkedlist and arraylist.
Why do we create public static method in java?