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
State the main difference between c++ and java?
Explain the difference between collection api and stream api in java8?
Explain about the select method with an example?
Why is core java important?
what is collatration?
how to prepare for IT Officers Interview in Banks
What is default size of arraylist in java?
How do you define a singleton class?
Explain about java sdk?
What are the restrictions imposed on method overriding?
Can we split string with in java?
How do you create a reference in java?
What is the difference between hashmap and hashtable in java?
Can a constructor be private and how are this() and super() method used with constructor?
What are the three types of design patterns?