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
What is the size of boolean variable?
Does garbage collection occur in permanent generation space in jvm?
What are the main uses of java?
Can you explain inner class.
what is meant wrapper classes?
Can you give names of Container classes?
Do loops java?
Can we store variables in local blocks?
What mechanism does java use for memory management?
What is class level lock ?
What is the java project architecture?
How is string immutable in java?
When can an object reference be cast to an interface reference in java programming?
Explain jvm, jre, and jdk?
What do you know about java?