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 / venu
i preferred to choose interface bcoz
if i implement interface still i have a chance to extend
another class
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can we have static methods in an interface?
What are the main features of java?
What is map and hashmap in java?
Does .length start 0 java?
Can you make a constructor final?
What is variable and its types?
Why hashset is used in java?
Which class cannot be a subclass in java?
Can we override the static method?
How do you escape a string?
How can you generate random numbers in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
Which is faster set or list in java?
Is 0 true or false in java?
What is the most important feature of java? What is an interface?