I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?
Answer Posted / harikrishna
you never get a chance to choose a method from abstract
class,because if you are writing a abstract class you
have to provide implementation to all the methods in
subclass otherwise you should declare that subclass as
Abstractclass.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How does compareto work in java?
What is the difference between Java and C++?
what is interface in java? Explain
Why is java called java?
What is finally and finalize in java?
What kind of variables a class can consist of?
What are the advantages of user defined functions?
What is the public method modifier?
What is a singleton in genetics?
What is the purpose class.forname method?
What is the difference between interface & abstract class?
Give us the name of the list layoutmanagers in java?
Difference between object and reference?
What do you mean by stack?
Is java same as core java?