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
Difference between a process and a program?
What is the list interface in java programming?
What is a file pointer?
Why we override equals() method?
Why does java not support pointers?
What are the two environment variables that must be set in order to run any java programs?
Can a class have more than one object?
What types of index data structures can you have in java?
What is the final blank variable?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Is java map thread safe?
List the interfaces which extends collection interface?
What is the purpose of the system class in java?
What is the difference between serial and throughput garbage collector?
What are the files generated after using IDL to java compiler?