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 the high-level thread states in java programming?
What is the effect of keeping a constructor private?
What is blank final variable?
Does sprintf allocate memory?
Can we have multiple classes in single file ?
What is floating data type?
What is java Applet?
What is ‘is-a ‘ relationship in java?
Is java map thread safe?
What is a predicate method?
what is the difference between thread and runnable types? : Java thread
Can list have duplicates in java?
What an i/o filter in java programming?
For class CFoo { }; what default methods will the compiler generate for you>?
What is nextint java?