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
Tell me how many ways are there to initialise an integer with a constant.
Can a class declared as private be accessed outside it’s package?
Why is method overloading not possible by changing the return type in java?
Explain try and catch keywords in java?
What is independent and dependent variables in research?
What are the advantages of passing this into a method instead of the current class object itself?
Does treeset use compareto?
What is the use of private static?
How can we find the actual size of an object on the heap?
What is sizeof in java?
Explain the private field modifier?
Which of the following classes will have more memory allocated?
What about main thread in java?
What means public static?
Under what conditions is an object’s finalize() method invoked by the garbage collector?