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
Which collection is best for sorting in java?
how do I create a runnable with inheritance? : Java thread
What is the purpose class.forname method?
What is the exception hierarchy in java?
What is java dot?
What is cr keyboard?
Does treeset allow null in java?
Is string pool garbage collected?
How do you decide when to use arraylist and linkedlist?
What is the static variable?
How we can run a jar file through command prompt in java?
What is the difference between abstraction and encapsulation?
What is console based application in java?
What is downcasting?
What is the largest long allowed by java?