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 |
Explain how to force the garbage collection in java.
Why wait and notify methods are declared in object class?
What is consumer interface?
Can we declare Pointer in Java?
Can we create a class inside a class in java?
What is string english?
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu
why abstract class will have a constructor?
Is space a string in java?
Explain about join() method?
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ?????
Which are different kinds of source code?