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 does || mean in code?
explain different ways of using thread? : Java thread
What is the Difference between Final Class && Abstract Class?
List the features of java programming language.
What is java volatile?
What is jee6?
What is an empty string in css?
What is temp in java?
What is square root in java?
What is t in parametric equations?
How to connect to a remote database using Applet?
What is equlas() and hashcode() contract in java? Where does it used?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is string manipulation?
What is regex used for?