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 the meaning of immutable regarding string?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is string pool?
What does file separator do in java?
Why chararray() is preferred over string to store the password?
Give few examples of final classes defined in Java API?
State the significance of public, private, protected class?
What is array and arraylist in java?
What is == and === in javascript?
Is a char always 1 byte?
Can you explain inner class.
What is mean by exception?
How to split arraylist elements in java?
Is it possible to use string in the switch case?