what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / rashmi kalra
1. Abstract classes may have concrete methods while
interfaces have no methods implemented.
2. Interfaces do not come in inheriting chain while
abstract class come in inheritance.
| Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
Why do we create public static method in java?
What is static method with example?
If we don’t want some of the fields not to serialize how to do that?
what is the difference between preemptive scheduling and time slicing? : Java thread
what is server side caching?
How many types of the indexof method are there for strings?
What is the difference between this() and super() in java?
What is set and get methods in java?
What is local variable and instance variable?
Is string a wrapper class?
What are the new features in java 8?
Explain about varargs in java?
What is stream api in java8?
How do you declare an empty string?
Differentiate between a class and an object.