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
What is the difference between checked exception and unchecked exception?
What is the implementation of destroy method in java. Is it native or java code?
What is this keyword in java?
What is map java?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is %02d?
What is namespace in java?
What is the difference between a switch statement and an if statement?
How to do a true java ping from windows?
What are the different data types in java?
How to change the priority of thread or how to set priority of thread?
What is a flag variable?
Is main is a keyword?
What is an iterator interface in java programming?
Differentiate between run time error and syntax error.