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


Please Help Members By Posting Answers For Below Questions

What are the advantages of user defined functions?

748


What is the difference between hashmap and hashtable? What is an interface?

779


What is the final keyword?

756


How to change value in arraylist java?

743


How a string is stored in memory?

770


What is an i/o filter?

1184


Mention the default values of all the elements of an array defined as an instance variable.

732


What are the four versions of java?

763


How many bytes is a string?

826


Explain a few methods of overloading best practices in java?

735


What is a default method?

752


What is nested top-level class?

776


What is listnode in java?

739


What is files manifesting?

1958


Explain differences between checked and unchecked exceptions in java?

838