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 root class for all Java classes?
Why put method is used?
What is difference between char array and string?
What is the console in java?
Why java is call by value?
What is the difference between dom and sax parser in java?
when you will synchronize a piece of your code? : Java thread
What is the definition of tree ?
What Is Pointer?
What is null statement?
Explain different ways of creating a thread. Which one would you prefer and why?
why applet doesn't have main? isn't possible a program with out main?