Answer Posted / jyotisubhra ghosh
You can not instantiate an interface,however, u can create
its reference variabe.
You can just assign an object of a class (implementing the
interface) to the reference variable of the interface.
| Is This Answer Correct ? | 50 Yes | 1 No |
Post New Answer View All Answers
Where import statement is used in a java program?
How many types of memory areas are allocated by JVM in java?
What is meant by collection in java?
What is the difference between logical data independence and physical data independence?
Does list maintain insertion order java?
How does arrays sort work in java?
What are sets in java?
What is functional interface in java example?
What does int [] mean in java?
Is empty .java file name a valid source file name?
What is Classloader in Java?
What is passed by reference and pass by value ?
What do you mean by inner class in java? Explain
Define an applet in java?
What does sprintf return?