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
What are data structures in java?
What is jdbc api?
Difference between serialization and deserialization in java?
What is flush () in java?
What are streams?
How do you reverse a list?
What do you mean by collectors in java 8?
What are variable arguments or varargs?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What is the difference between super class & sub class?
What is serialversionuid?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Is the milky way in a void?
What’s the difference between constructors and other methods?
What is the difference between call by reference and call by pointer?