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 tree in java?
What do you understand by classes in java?
Explain what is encapsulation?
Where and how can you use a private constructor?
What is a top level class in java?
What are the differences between forwarding () method and sendredirect() methods?
Can java run on google chrome?
What are class types in java?
What is a condition in java?
What is size of int in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is final?
Why map is used in java?
Name some classes present in java.util.regex package.
How do you use compareto?