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
Can java cast null?
What is prefix of a string?
Can we overload the methods by making them static?
Is null or empty java?
What happens if we override only equals?
How to read and write image from a file ?
What are thread groups?
What is static block?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
When throw keyword is used?
What is the use of hashmap in java?
Why does java have two ways to create child threads?
What are scalar data types?
Can an integer be null java?
Why are pointers not secure?