When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify
Answer Posted / atul
multiple inheritence is not possible so we use interface
instead of it.when we declare interface then inside declare
all methods is by default abstract, data member is by
default final & static .final means there is must
Initialization at declare time otherwise inside first
constructor call.
thats it...
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Is arraylist ordered?
How do you compare characters in java?
What are the 6 functions?
why Java does not support multiple inheritances?
What are the common uses of "this" keyword in java ?
What is abstract class? Explain
How do you write a good declaration?
What does exp mean in math?
Java.util.regex consists of which classes?
How to convert string to char and vice versa?
What is the internal implementation of set in java?
Explain the difference between transient and volatile in java?
What is fail fast in java?
Can java object be locked down for exclusive use by a given thread?
How do generics work in java?