Can there be an abstract class with no abstract methods in it?
Answer / pankaj kumar
Yes,If A class have an abstract method the class must be declared as abstract, but if a class is declared as abstract
then,this is not mandatory that class hold any abstract method.
exa :
1. public Abstract class a{
// instance method;
}
///Above declaration is right
2. public class a{
// instance method;
// abstract method; //then you must declare this class as abstract.
}
///Above declaration is right
| Is This Answer Correct ? | 13 Yes | 2 No |
What is Java Annotations?
Do you know thread pools?
What is the difference between delete and delete[]
What is the same as procedures?
what is thread? What are the high-level thread states? : Java thread
Why we can not force Garbage Collection?
How do you use nextline in java?
Why unicode is important?
What are the skills required for core java?
Does java return by reference?
What is polymorphism and what are the types of it?
What is the % operator?