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 is array pointers ?
What is an argument in java?
What does system.gc() and runtime.gc() methods do?
What are benefits of java?
how are methods defined?
Explain different ways of creating a thread?
Can we override final method?
What are the data types supported by java? What is autoboxing and unboxing?
What is used of static keyword in java?
What is difference between fail-fast and fail-safe?
What is a function in programming?
Explain the difference between abstract class and interface in java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Is null keyword in java?
How do you create a null object?