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
Explain a few methods of overloading best practices in java?
How many types of literals are there in JAVA?
What is listnode in java?
What's the purpose of using break in each case of switch statement?
What is the method to declare member of a class static?
What is wrapper class example?
What things should be kept in mind while creating your own exceptions in java?
How can we create a synchronized collection from given collection?
Can an interface extend a class?
What is a prefix function.write down a code to compute prefix function.
What is the loop in java?
Is arraylist sorted in java?
Can vector have duplicates in java?
Explain thread life cycle in java?
Which keyword specify that a variable is effectively final ?