can we create instance for interface in java?

Answer Posted / venkateswararao

No,we cant create an instance if an interface in java , but
we can create a reference of an interface and we can
assign the object of a class to that interface reference.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you compare arrays in java?

498


what is the final keyword denotes in java?

579


What is an 8 bit word?

589


When is an object subject to garbage collection?

573


How to call one constructor from the other constructor ?

599






What is r * in math?

548


What is reflexive association?

1003


Why string is immutable with example?

526


What is a buffer in java?

569


What is charat java?

536


What is variable and example?

515


What is the purpose of file class?

541


What is the old name of java?

499


Can we use return in constructor?

486


Can private method static?

471