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
Explain about automatic type conversion in java?
What is oops in java?
Explain the purpose of garbage collection in Java?
Is sizeof a keyword in java programming?
What are the data types supported by java?
Does string isempty check for null?
What is casting in java programming?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
Is a string literal?
What is a lock or purpose of locks in java?
How do you check if two given string are anagrams?
How many arguments can be passed to main ()?
How do you achieve singleton?
How does linkedlist work in java?
Why are there no global variables in java?