can you create interface instance ?
Answer Posted / sanddep
what uday did here was not creating the instance of the interface but he implemeted the interface through the anonymous class.Now the instance created is of that anonymous class which has implemented the interface and its reference is stored in the variable t.
Regards
Sandeep
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is 0 true or is 1 true?
How large is a boolean?
What is n in java?
What is an eror in java?
What is your platform?s default character encoding and how to know this?
What is the benefit of lambda expressions?
What are keywords in java?
What is a boolean field?
how to create constants in java?
What is the null?
Describe what happens when an object is created in java ?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is locale?
Which access specifier can be used with class ?
Differentiate between a class and an object.