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 array initialization in java?
What do you mean by compiler?
Is null a value?
What is application tier?
What are the problems faced by java programmers who don't use layout managers?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Compare java and python.
What is a parameter in a function?
Explain about abstract classes in java?
Is void a data type in java?
If a class is declared without any access modifiers, where can the class be accessed?
Explain about exception propagation?
Can we extend private class in java?
What do you understand by classes in java?
What is byte value?