Difference between interface and abstract class with ex.
Answer Posted / sreenivas g
Abstract Class : If a class contains atleast one
non-concrete(not implemented) method, it is said to be
Abstract class. it should be defined with keyword abstract.
It is a combination of both implemented and non-implemented
methods.
Interface : By default all the methods in Interface are
abstract methods. All the methods are non-implemented in
interface.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What is the difference between equals() and?
Can you achieve runtime polymorphism by data members?
What is definition and declaration?
Where are register variables stored?
When do I need to use reflection feature in java?
Is an object null?
Can we define a package statement after the import statement in java?
Is string a class?
What is passing by reference in java?
Why is singleton class used?
What is string buffer?
Write a program to find maximum and minimum number in array?
What do you understand by looping in java? Explain the different types of loops.
What is empty list in java?
What is the difference between pass by reference and pass by pointer?