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
Describe how to implement singleton design pattern in struts.
What happens if an exception is throws from an object's constructor?
Is arraylist an object in java?
What is adapter in java?
Can we sort set in java?
Why are getters and setters used?
Difference between arraylist and hashset in java?
Why vector class is used?
Can you instantiate the math class in Java?
Java is pass by value or pass by reference? Explain
Can the interface be final?
What does t in java mean?
What access modifiers can be used for variables?
Which data type is class in java?
What is a databasemetadata?