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 is the symbol for line break?
What is a local block?
What is meant by 'Class access modifiers'?
What’s meant by anonymous class?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
How will you add panel to a frame?
Explain listiterator and methods in listiterator?
Define the term string pool?
What is java in simple terms?
How do you represent a space in regex java?
Explain the inheritance?
What is number data type in java?
What is meant by class loader? How many types are there?
What happens to a static var that is defined within a method of a class?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?