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 the difference between jsp and servlet?
What is increment in java?
How do you escape sequences in java?
How to use arraylist in java netbeans?
What is static and final keyword in java?
What is the use of arrays tostring () in java?
How the elements are organized in GridLayout?
How does thread synchronization occurs inside a monitor?
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
Can a main method be overloaded?
Which is fastest collection in java?
can we have virtual functions in java?