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 what is encapsulation?
Can variables be used in java without initialization?
Is main an identifier?
What is a values collection view ?
Which language is java?
What are the ways in which a thread can enter the waiting state?
Can we able to pass objects as an arguments in java?
How do you declare a destructor in java?
What is the purpose of skeleton and stub?
What is the unit of plancks constant?
What is difference between stringbuffer and string?
Can we override static methods in java?
What is meant by tab pans?
Which containers use a flowlayout as their default layout in java programming?
Which is dependent variable?