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
What is the difference between overriding & overloading?
What is off heap memory?
Why hashset is used in java?
what is a thread pool in java and why is it used?
What is the difference between heap and stack memory?
Is a boolean variable?
What happens if an exception is throws from an object's destructor?
What is difference between overloading and overriding in java?
What is a protected void?
What is the significance of continue jump statement? Explain with an example.
How does java enable high performance?
What is module in project?
What is foreach loop in java?
How many bytes is a string java?
Can we store variables in local blocks?