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
What is the purpose of stub and skeleton?
What is a module function?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What are instance variables?
Explain about static nested classes in java?
What is the difference between the paint() and repaint() methods?
Is java a compiler?
Can we have 2 main methods in java class?
Is singleton class immutable?
In java how do we copy objects?
What is meant by stack and queue?
Should you use singleton pattern?
List some important features of java 10 release?
What is thread count in java?
What is meant by collection in java?