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 variable in java?
How can I right-justify a string?
What is the use of keywords in java?
What is difference between variable declaration and definition?
What is the use of parseint in java?
Does variable declaration allocate memory?
What is prime number in java?
How can we find the actual size of an object on the heap?
What are the advantages of autoboxing?
How arrays are stored in memory in java?
How do you sort a set in java?
How do you define a parameter?
What's the purpose of using break in each case of switch statement?
How big is a 32 bit integer?
What is main function purpose?