can you create interface instance ?
Answer Posted / uday
Hi Deepesh, uday is back again
Hey just see the question . can you create interface
instance?
just say the answer Yes or No?
my answer is Yes
how is it possible? Already i gave the example.I know that
this is anonymous inner class concept. But i don't want to
exceed this concept for too complex. that's why i did it in
this manner.Any How i thanks to all of you for more inputs.
but u can create the instance for interface. how can we
check an instance is,using instance of operator only. here
it proved hence the affrimative ans is right. i am not
plmbbing your knowledge it's just a kind of inquiry. Thanks
FYI huh!!!!
| Is This Answer Correct ? | 1 Yes | 12 No |
Post New Answer View All Answers
What is method reference?
What is java in layman terms?
What is substring 1 in java?
What does %4d mean in java?
what are the methods in object?
Can a class be a super class and a sub-class at the same time? Give example.
Differentiate between run time error and syntax error.
Is it possible for a yielded thread to get chance for its execution again?
Explain the difference between static and dynamic binding in java?
What does it mean that a class or member is final?
What is functional interface in java?
Why char array is favored over string for the storage of passwords?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
Can we have multiple classes in single file ?
What are advantages of exception handling in java?