can you create interface instance ?
Answer Posted / anil
That it is not creating the instance of the interface. The
class which is there on the right side is called anonymas
call.
It is correct when the statement is as below
Test t =new Test(); he should give the ';' after the
paranthesis not after the '}'.
Please refer anonymas classes for other information how
they works...
| Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
How do you avoid global variables?
What is a nonetype?
What is the difference between a local variable and an instance variable?
What are the properties of thread?
Write a program to calculate factorial in java?
Can an interface be defined inside a class?
What is the purpose of javac exe?
Can we have static methods in an interface?
what is static import in java? Explain
What is an example of declaration?
What is a blocking method in Java?
What is a conditional statement explain with example?
Is a class an object?
How to print nodes of a Binary tree?
How do you achieve singleton?