Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?
Answer Posted / srihari
Interfaces are used to create prototype of classes. Interfaces would be using high-level access specifiers(public).
Abstraction is a mechanism in Java to expose the essential features of the class. Different levels of abstraction is achieved through Access specifiers.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is java abstraction with example?
What is role of void keyword in declaring functions?
What is garbage collection? What is the process that is responsible for doing that in java?
Can an interface be defined inside a class?
What is java in detail?
Is hashmap thread safe?
Difference between arraylist and hashset in java?
What do you mean by jjs in java8?
What will happen when using pass by reference in java?
How many types of assembly languages are there?
Describe string intern() methodology
How many ways can we create singleton class?
What is difference between equals and hashcode method?
What is the purpose of nested class in java?
What is static keyword in java?