can you create interface instance ?

Answer Posted / arvind panwar

No, we can't create an instance of an interface but
reference variable can hold reference to object of its sub
class.

Is This Answer Correct ?    46 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the internal implementation of set in java?

509


What are static methods?

578


What does it mean that a method or field is “static”?

553


What is the meaning of flag day?

545


Is null in java?

556






How will you serialize a singleton class without violating singleton pattern?

1528


Can one thread block the other thread?

610


does java support pointers?

569


How to solve the problem of generating the unique hash keys with hash function?

1463


What is package private scope in java?

538


What is sorting algorithm in java?

527


How do I compare two strings in word in java?

541


When is finally block not called?

584


Explain about anonymous inner classes in java?

584


What is void data type?

582