what is main difference b/w abstract class and interface
Answer Posted / naga~1417
A class implementing an interface must implement all of the
methods defined in the interface, while a class extending
an abstract class need not implement any of the methods
defined in the abstract class. Additionally, a class
extending an abstract class can implement an infinite
number of it's own methods.
Abstract class does not support Multiple Inheritance .
Interface supports Multiple Inheriatnce..
The differnce is that in interface all are public but in
abstract class u can have private and protected members
Abstract class contains the method defination of the some
methods. but Interface contains only method declaration, no
defination
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is one third plus one third as a fraction?
How to stop a thread in java? Explain about sleep () method in a thread?
What is a static class in java?
Explain where variables are created in memory?
How to perform quicksort in java?
What are the differences between processes and threads?
Can we overload the constructors?
What is a methodologist?
What is a key in java?
Is 0 a prime number?
What is a function argument in java?
Explain about assignment statement?
Difference between vector and arraylist.
Is java call by value?
What is the difference between replace and replace all?