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 singleton in java?
What is class level lock ?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is java literals?
What is instance means in java?
What are constants?
What is a byte string?
What is api in java?
What is hashing principle in java?
What flag up means?
What is void class in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
What is the abstract class?
Where is the find and replace?
Why can we not override static method?