Can there be an abstract class with no abstract methods in it?
Answer Posted / 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 |
Post New Answer View All Answers
Explain with example the concept of constant variable in java.
What is the hashcode () and equals () used for?
How does varargs work in java?
Explain about member inner classes?
What is the numeric promotion?
What are the different types of java?
Can a list be null in java?
Explain 5 features introduced in jdk 1.7?
Is null == null in java?
Is java code slower than native code?
What does system out println () do?
What about interthread communication and how it takes place in java?
what is meant by abstract class?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is abstract class constructor called?