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 |
Can we restart a dead thread in java?
What is oops in java?
What is the difference between abstract class and interface1? What is an interface?
What is the purpose of using break in each case of switch statement?
How many tetrahedral voids are there in bcc?
What is the maximum size of a string in java?
What is the use of math abs in java?
Why do people says “java is robust”?
How do I stop concurrentmodificationexception?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
Does isempty check for null?
What is a null check?