what is difference between Interface and abstract class
Answer Posted / naveen
Interface is a specification it tells a class has what to do.
It is purely abstract class it contains abstract methods and final static variables.
Generally begining of the project PM or TL are providing the Interfaces, developers are implementing the Interfaces.
Abstract class
Abstract class is a mediator between Interface and Class , any common code is their that code written in Abstract class and then extend the Abstract class. Abstract class containing abstract and concreate methods.
Abstract class are used in Designing level.If take java predifined class we understand easily.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is a two-pass assembler?
What is the replace tool?
How does sublist works in java?
Can I declare class as static or private?
What makes a function well defined?
Difference between ‘>>’ and ‘>>>’ operators in java?
Can we change the scope of the overridden method in the subclass?
What is the base class in java from which all classes are derived?
What is a stringbuilder?
Which one of the following suits the description of a string better: derived or primitive?
What is run time allocation?
What is balanced tree in java?
What is string subsequence method?
Can you pass by reference in java?
What are the 7 types of characters?