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
what is thread in Java ?
Explain 5 features introduced in jdk 1.7?
What are the files generated after using IDL to java compiler?
What is the concept of multithreading?
What is the difference between stream and buffer?
Is a char always 1 byte?
What is the collection interface?
What is java autoboxing?
Does collectionutils isempty check for null?
What is merge sort in java?
What is a singleton class? Give a practical example of its usage.
What is private public protected in java?
Explain reverse a linked list recursive java solution?
What is generic type?
What do you mean by jjs in java8?