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
Is final static java?
What is the this keyword?
What are the differences between include directive and include action?
What do bitwise operators do?
What is the difference between JDK and JVM?
What is an infinite loop in java? Explain with an example.
How can we find the sum of two linked lists using stack in java?
Why stringbuffer is faster than string?
What is the longest unicode character?
When we should use serialization?
Explain about instanceof operator in java?
What is purpose of applet programming?
Difference between association, composition and aggregation?
Can we override private constructor in java?
What is a method in programming?