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
Explain the purpose of garbage collection in Java?
What are functions in java?
Which variables are stored in stack?
What access modifiers can be used for methods?
Can we overload destructor in java?
What is heterogeneous in java?
State one difference between a template class and class template.
What is difference between string and new string?
Explain about method local inner classes or local inner classes in java?
State some situations where exceptions may arise in java?
How to use arraylist in java netbeans?
Why we do exception handling in java and how many types of exceptions are there?
What is difference between printf and scanf?
Is java developer a good career?
What is the structure of java?