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
What is maximum size of arraylist in java?
How do you stop a thread in java?
Give us the name of the list layoutmanagers in java?
When is update method called?
How to check if linked list contains loop in java?
What is command line used for?
What are exceptions
Can you give few examples of final classes defined in java api?
Explain about java sdk?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Can there be an abstract method without an abstract class?
Enlist diffrent types of inheritance supported by java?
Why is it called a string?
What is Enum in Java?
Explain reverse a linked list iterative solution in java?