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 a modifier?
How many static init can you have?
What is a class variable?
What is fail first in java?
What is anagram word?
What is the major advantage of external iteration over internal iteration?
Write a function to find out longest palindrome in a given string?
What is class array in java?
What is arraylist class in java?
What is the difference between super class & sub class?
What are design patterns and please explain?
What is jrmp?
What do you understand by the term singleton?
What is an immutable object?
What is the biggest integer?