did interface can implementation method ? i know its not
possible but my interviewer said its possible ..but how..?
any one have idea ???
Answer Posted / vinod
Hi Lakshmikant,
by writing anonymous class you are actully implementing an interface
It does not mean that we can have implementation with in an interface.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is void data type?
What does .equals do in java?
Explain about wait() method?
How do you remove all elements from an arraylist in java?
What does percent mean in java?
Can we instantiate interface in java?
How many ways can you break a singleton class in java?
What is the r character?
What is a flag and how does it work?
What is type inference in java8?
What is difference between == equals () and compareto () method?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is the role of garbage collector in java?
What is hasnext in java?
How does indexof work?