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 the difference between error and an exception?
What is the difference between static and non-static variables in java programming?
What is difference between printf and scanf?
Is empty string in java?
What is string intern in java?
What about features of local inner class?
What are the differences between getting and load method?
What are the different types of inner classes?
What are parsing rules?
What is treemap in java?
Why super is first line in java?
Is int a class in java?
what is the constructor and how many types of constructors are used in java?
What is time complexity java?
Can classes declared using the abstract keyword cab be instantiated?