Answer Posted / subhash
No.We cannot create instance for interface.But we can
create reference to an interface.We can implement the
interface by creating sub class(implementation class) and
creat instance to the sub class, then you can create
reference to the interface by assigning instance of sub
class to the interface reference variable.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is this keyword in java?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What are the important features of Java 11 release?
What is the difference between the ">>" and " >>>" operators in java?
Explain about doubly linked list
What do you mean by object?
What is the final access modifier in java?
How to call one constructor from the other constructor ?
Why is whitespace important?
What is the use of keywords in java?
Can you pass functions in java?
What is called module?
How do I enable java in safari?
How to declare an arraylist in java?
Is java ee a framework?