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 is the buffer limit?
What is regex java?
what is abstract class in Java?
Explain 5 io best practices?
What is the use of callablestatement?
Explain the public class modifier?
What is a generic type?
How do you achieve polymorphism in java?
Explain features of interfaces in java?
What is final keyword in java? Give an example.
What is int argc char * argv?
Why parameters should be passed by reference?
What is the meaning of nullable?
What is == and === in javascript?
What is regex in java?