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 are the advantages of user defined functions?
What is the difference between hashmap and hashtable? What is an interface?
What is the final keyword?
How to change value in arraylist java?
How a string is stored in memory?
What is an i/o filter?
Mention the default values of all the elements of an array defined as an instance variable.
What are the four versions of java?
How many bytes is a string?
Explain a few methods of overloading best practices in java?
What is a default method?
What is nested top-level class?
What is listnode in java?
What is files manifesting?
Explain differences between checked and unchecked exceptions in java?