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 / ashoka
Better to choose Abstract class. Because it contains not
only the abstract methods but also implemented methods but
in interfaces only unimplemented methods will be there and
all final variables will be there.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does the “static” keyword mean?
Who is founder of java?
How can you read an integer value from the keyword when the application is runtime in java? example?
How many types of literals are there in JAVA?
what r advatages of websphere? & how to deploy?
What's the base class in java from which all classes are derived?
What are dot operator queries?
What does jre stand for?
What is namespace in java?
Explain the importance of thread scheduler in java?
What is this keyword used for?
What is the use of 'super' keyword inside a constructor?
What does arrays sort do in java?
How hashmap increases its size in java?
Why java doesn’t support multiple inheritances?