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 the difference between menuitem and checkboxmenu item?
What is the meaning of find and replace?
List types of storage classes in java?
Highest level event class of the event-delegation model?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What if constructor is protected in java?
Why synchronization is important in java?
What is qualitative variable?
Why is flag used in java?
What is the difference between yielding and sleeping in java programming?
How can we create an immutable class in java?
What is type safety in java?
What are the different types of constructor?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What mechanism does java use for memory management?