did interface can implementation method ? i know its not
possible but my interviewer said its possible ..but how..?
any one have idea ???
Answer Posted / amit singh
its a not correct
true answer is that
if the interviewer ask that there is any backdoor
to do this then it is correct but "I THINK INTERVIEWER HAD
SOME HANGOVER"
right answer is no
above coding is right but not the answwer
beacuse
1):what he did in this code just define a class inside a
interface and define a method in this class
so question is not solve there is question in a question
and the answer is "YOU JUST BINDING THE B type with this
INTERFACE A"
not method implementation
amitsing2008@gmail.com
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is singletonlist in java?
What is rmi and steps involved in developing an rmi object?
Do we have pointers in java?
Why is inheritance used in java?
What do you understand by java virtual machine?
what is the constructor and how many types of constructors are used in java?
Which non-unicode letter characters may be used as the first character of an identifier?
What is queue in java?
Which method cannot be overridden in java?
What does exclamation mean in java?
What is the properties class?
What is the purpose of the System class?
Write a program to reverse a number in java?
If a method is declared as protected, where may the method be accessed?
What is getclass () getname () in java?