Can there be an abstract class with no abstract methods in it?
Answer Posted / 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 |
Post New Answer View All Answers
What is the properties class?
What will be the initial value of an object reference which is defined as an instance variable?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What are the different ways of creating thread?
What is the purpose of the main method?
What are the four versions of java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What is java’s garbage collected heap?
What are the drawbacks for singleton class?
What is the use of beaninfo?
what do you mean by java annotations?
What is double checked locking in singleton?
Explain about strings in java?
Which sorting is used in arrays sort in java?
Can we declare an array without size in java?