Can we have a abstract class withought any method? What is a
purspose of this?
Answers were Sorted based on User's Feedback
Answer / malli
Yes,we can able to keep abstract class without any any methods.
purpose: Abstract class support for all unimplemented
methods (or) all concrete methods (or) some concrete methods
and abstract methods. so based on requirement we can use
abstract class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sneha
Ya we can have an abstract class withought any method...It helps to prevent it from being instantiated...
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sourav kumar verma
it may or may not include abstract methods. Abstract classes
cannot be instantiated, but they can be subclassed.
| Is This Answer Correct ? | 0 Yes | 1 No |
Can we inherit inner class?
How could Java classes direct program messages to the system console, but error messages, say to a file?
Which browsers work with java?
What is variable and example?
What is super in java?
What is Java Reflection API? Why it’s so important to have?
what is nested class in java?
Name the immediate superclass of the MenuComponent class?
What is currentthread()?
what is the difference between String and StringBuffer classes?
What is use of arraylist in java?
Explain importance of inheritance in java?