Difference between interface and abstract class with ex.
Answer Posted / sreenivas g
Abstract Class : If a class contains atleast one
non-concrete(not implemented) method, it is said to be
Abstract class. it should be defined with keyword abstract.
It is a combination of both implemented and non-implemented
methods.
Interface : By default all the methods in Interface are
abstract methods. All the methods are non-implemented in
interface.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What is java used for?
What is matcher in java?
Can we assign integer value to char in java?
Can an integer be null java?
What is the difference between overriding & overloading?
List some important characteristics on jre
Can you use this() and super() both in a constructor?
What is void class in java?
How can a gui component handle its own events in java programming?
What is the final blank variable?
Why does java does not support multiple inheritance? Explain
What is defined as false sharing in the context of multithreading?
Is java map thread safe?
What is void keyword?
What is the effect of keeping a constructor private?