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 |
How do you convert an int to a string in java?
What is string args [] in java?
What types of inheritance does Java support?
How two different class threads communicate with each other?. send example code.
What is the multilevel inheritance. and also give the Example of it ?
How many Java environments are there?
1 Answers Phantom Technologies,
Do you need to import math in java?
How many ways can we create the string object?
Explain tree set and its features?
what is real-time example of runtime polymorphism and compile time polymorphism
Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.
Explain naming conventions for packages?