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 is static variable with example?
What is an argument java?
What is a consumer in java?
What is the loop in java?
How do you override a variable in java?
Are primitives objects?
What does the string method compareto () do?
What is volatile keyword in java
Differentiate between run time error and syntax error.
What is an class?
What are the benefits of operations in java?
How does singleton class work?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
Mention a package that is used for linked list class in java.
Are floats faster than doubles?