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


Please Help Members By Posting Answers For Below Questions

What is array initialization in java?

486


What do you mean by compiler?

578


Is null a value?

555


What is application tier?

525


What are the problems faced by java programmers who don't use layout managers?

546






How many times finalize method will be invoked? Who invokes finalize() method in java?

572


Compare java and python.

574


What is a parameter in a function?

524


Explain about abstract classes in java?

581


Is void a data type in java?

522


If a class is declared without any access modifiers, where can the class be accessed?

588


Explain about exception propagation?

583


Can we extend private class in java?

544


What do you understand by classes in java?

551


What is byte value?

551