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
What is the use of put method?
What is thread synchronization in java?
What is the use of conditional statement?
Can we restart a dead thread in java?
What is the size of string?
What are default methods ?
What is lambda programming?
Is linked list a linear or non-linear data structure?
What is the difference between multiple processes and multiple threads?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is a dynamic array in java?
Why there are some null interface in java? What does it mean?
How do I get the | symbol on my keyboard?
Is final static java?
What is supplier in java?