can you create interface instance ?
Answer Posted / anonymous
Hi Uday,
That's really nice however I think you have just created and anonymous class implementing the interface, and then invoking the wish method :)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can string be considered as a keyword?
What are peerless components?
Explain notifyall() method of object class ?
What is a subsequence of a string?
What is a control variable example?
What is canonical name in java?
How destructors are defined in java?
How does enum work in java?
What do you understand by casting in java language?
How to create a fecelet view?
Why is java so important?
What is an example of a constant variable?
What do you mean by composition in java?
Explain an intermediate language?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?