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 meant by structural programming?
Can you explain inner class.
Which variable is the independent variable?
What are the topics in advance java?
Is zero a natural number?
Which of the classes will have more memory allocated?
Can we clone singleton object in java?
Does every java program need a main?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is get () in java?
Explain creating threads by implementing runnable class?
How does system arraycopy work in java?
What is jit and its use?
What is called module?
Why is java so popular?