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
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Convert Binary tree to linked list.
What is data type in computer?
Is java a virus?
What are the 5 types of research methods?
Is ++ operator thread-safe in java?
What is boolean keyword in java?
What is an example of procedure?
What is the meaning of I ++ in java?
What is java util collection?
What is numeric data type?
How do you override a private method in java?
Can we have any other return type than void for main method?
Explain the difference between transient and volatile in java?
Is ruby built on java?