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 method overloading in java ?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one
What is the purpose of the enableevents() method in java programming?
Explain about oops concepts.
0 Answers Aditi Placement Service,
Can we execute java program without main method?
how to minimize the functionality to will not force garbage collector?
Why is stringbuffer faster than string?
How do you add spaces in java?
Where can I find data structures question and answers with comprehensive working code written in Java
Give the difference between the println method and sqrt method?
What is :: operator in java?