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
Define locale.
How to remove the trailing spaces from a string?
How is string stored in java?
Can we write class inside a class in java?
Can we catch more than one exception in single catch block?
Difference between abstract and concrete class ?
How do you sing an Applet ?
Enlist few advantages of inheritance?
What does serializing data mean?
Can a method be static?
How to declare objects of a class ?
What is java command?
What modifiers are allowed for methods in an interface?
Can we force the garbage collection to run?
What’s the difference between applets and standalone program?