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 final class?
Where and how can you use a private constructor?
What is the purpose of tostring() method in java?
Is array synchronized in java?
What is difference between fileinputstream and filereader in java?
What is the purpose of the system class in java programming?
What is the purpose of the return statement?
What are the rules for naming an array?
How is Object Oriented Programming different from Procedure Oriented Programming?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is a nonetype?
How to convert string to char and vice versa?
What is the most important feature of java? What is an interface?
Difference between static and dynamic class loading.
how to open and edit XML file in Weblogic???