can you create interface instance ?

Answer Posted / sushma

hi nishant,
whatever the explanation u have given is exactly right. we cant create an instance for interface. the instance created is for annonymous inner class and not of interface Test.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is thread in Java ?

616


Explain 5 features introduced in jdk 1.7?

600


What are the files generated after using IDL to java compiler?

578


What is the concept of multithreading?

514


What is the difference between stream and buffer?

507






Is a char always 1 byte?

495


What is the collection interface?

579


What is java autoboxing?

528


Does collectionutils isempty check for null?

803


What is merge sort in java?

573


What is a singleton class? Give a practical example of its usage.

581


What is private public protected in java?

565


Explain reverse a linked list recursive java solution?

519


What is generic type?

560


What do you mean by jjs in java8?

549