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 purpose of skeleton and stub?
What is the purpose of checked and unchecked exceptions in JAVA?
What is the use of protected in java?
When should a function throw an exception?
Why does java not support operator overloading?
Will minecraft java be discontinued?
Is java pass by value or pass by reference?
what is a thread pool in java and why is it used?
How do you sort arraylist in descending order?
How to perform quicksort in java?
Explain some best practices you would apply while using collection in java?
I want to print “hello” even before main is executed. How will you acheive that?
What is flush () in java?
Is boolean a wrapper class in java?
What are the difference between composition and inheritance in java?