when to use abstract class and when to use interface?
Answer Posted / brijendra kumar soni(xavient)
1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.
2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the pointers in Java?
What is difference between checked and unchecked exception in java?
Can you start a thread twice in Java?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What is a line separator in java?
What is qms certification?
What is java virtual machine? Explain
Tell me the Importent classes in net package?
a thread is runnable, how does that work? : Java thread
What is hash in java?
Can finally block be used without a catch?
What is string literal in java?
Can a private method be declared as static?
What is string substring?
What is instance example?