can you create interface instance ?

Answer Posted / guest

Hi all,

I think Udaya is right and i have tested in the same and its
working. But if you think about the way JAVA has to make
instances(e.g. A a = new A()) will not work. It will give
you compilation error. So there is something we are not able
to see. Even I am trying to get what this example actually
working.

Feel free to update me if I am wrong...☺

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of boolean variable?

568


Does garbage collection occur in permanent generation space in jvm?

601


What are the main uses of java?

521


Can you explain inner class.

586


what is meant wrapper classes?

600






Can you give names of Container classes?

1849


Do loops java?

547


Can we store variables in local blocks?

782


What mechanism does java use for memory management?

487


What is class level lock ?

606


What is the java project architecture?

1783


How is string immutable in java?

539


When can an object reference be cast to an interface reference in java programming?

575


Explain jvm, jre, and jdk?

557


What do you know about java?

515