Can i have abstract class with no abstract methods?
Answer Posted / manish kushwaha
HI All,
In Java there is very lovely concept related to Abstract
Class, keep this concept always in your mind i.e.
1) A class can be abstract "without any abstract method".
2) But if a single method is abstract you need to declare
your class as abstract this is mandatory but if class is
abstract then its not mandatory to have abstract methods
as mentioned above.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How can we achieve thread safety in java?
If a method is declared as protected, where may the method be accessed in java programming?
give an example for encapsulation?
Explain how hashmap works?
What is a byte array?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
How do you use spaces in java?
What is the purpose of skeleton and stub?
What is the use of string and stringbuffer?
Why is singleton class used?
What is a lightweight component?
what is the difference between Object Based Language and Object Oriented Language?
How does multithreading take place on a computer with a single cpu?
What is console based application in java?
What is passing parameters in java?