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
How many types of assembly languages are there?
What are the Static and Dynamic Variables? Differentiate them.
What is finalize()? Is finalize() similar to a destructor?
What is the purpose of static methods and variables?
What was java originally called?
Why do we declare a class static?
What is a buffer in computer?
Is sizeof a keyword in java programming?
What are functions in java?
Can substring create new object?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What do you mean by access modifier?
What do you mean by stack?
What is void keyword?
Can long be null in java?