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
How many types of array are there?
Describe how to implement singleton design pattern in struts.
What is the use of private static?
Does garbage collection occur in permanent generation space in jvm?
What is the common usage of serialization? What exceptions occur during serialization?
What is integer size in java?
What is a qms manual?
What does a boolean method return?
What are the different data types in java?
What are the principle concepts of oops?
Can we return null in java?
How do you check if a number is a perfect square?
How do you define a singleton class?
How can u increase the heap size in the memory?
What are the two types of streams offered by java 8?