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
Explain the different forms of polymorphism?
why doesn't java run on all platforms?
What is a static class in java?
What is final variable?
Explain about fail fast iterators in java?
What does super keyword do?
How does compareto work in java?
What is a double vs float?
Difference between notify() method and notifyall() method in java?
What is int argc char * argv?
Do we have pointers in java?
Write a program to check for a prime number in java?
What is java in simple terms?
Describe string intern() methodology
Explain different types of wrapper classes in java?