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 the original name of java?
Define "Access specifiers" in java.
What is the difference between scrollbar and scrollpane?
How big is a pointer?
Can java object be locked down for exclusive use by a given thread?
How many types of methods are there?
What do you understand by classes in java?
What is the significance of java packages?
What do you mean by local variable and instance variable?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
How many types of voids are there?
What an i/o filter in java programming?
What is the difference between class & object?
Can we make constructors static?
Can constructor be static or final?