Difference between abstract class and Interfaces?
Answer Posted / hema
Abstract Class is the Class where it can have Methods with
both Definition and Declaration.
Method Declaration: public void Display();
Method Definition: public void Add(){ ..code goes on here...}
When all the methods in a class are only Declared then it is
Interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What exactly is a .class file?
Can we catch more than one exception in single catch block?
Why a dead thread occurs?
How to sort array of 0 and 1 in java?
What is the java virtual machine?
What is Java Annotations?
What is thread safe singleton?
What is a list in java?
What are the types of casting?
What is function overriding and overloading in java?
What is the difference between hashmap and hashtable in java?
What comes to mind when someone mentions a shallow copy in java?
How do I get the | symbol on my keyboard?
Why we cannot override static method?
What is finalize()? Is finalize() similar to a destructor?