Difference between abstract class and Interfaces?
Answer Posted / ranganathkini
An Interfaces defines a public contract of methods for the
classes that implement it. An implementing class must
implement all the method defined by the interface.
An abstract class on the other hand not only defines a
public contract of methods but may also provide partial
implementation of some or all of the class methods. A
subclass of an abstract class inherits the partial
implementation (if any) or must provide a concrete
implementation of the abstract methods.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What lambda means?
How do you declare a string variable?
Is boolean a wrapper class in java?
What about instanceof operator in java?
What is mnemonic in assembly language?
Is multiple inheritance supported by java?
What are sets in java?
How to invoke external process in java.
What is google full form?
What is the public method modifier?
What causes memory leaks in java?
What is the exact difference in between unicast and multicast object? Where we will use?
Which package is used for pattern matching with regular expressions?
How many bits is a float?
How do you make an arraylist empty in java?