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 a default constructor and also define copy contrucyor?
Is empty string in java?
What is tcp and udp?
Can a constructor have different name than a class name in java?
What is a thin-client application?
What restrictions are placed on method overriding?
What are different types of expressions?
how to split string in java?
What is this keyword in java?
Define inheritance with reference to java.
What are the basic concepts of OOPS in java?
0 Answers Axtria, ITC Indian Tobacco Company,
What is complexity and its types?