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
How do you include a string in java?
What is string in java is it a data type?
What language is java written?
What is the driver class?
What is a class instance variable?
What are the elements of java?
How objects of a class are created if no constructor is defined in the class?
Why java is platform independent? Explain.
What is the range of a character variable?
What is replaceall in java?
What is a class object?
What are static blocks and static initalizers in java ?
What is purpose of applet programming?
What is the difference between an interface and an abstract class?
What is proper subset?