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
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is parsing and its types?
What is replaceall in java?
Can you explain the cs option of java interpreter?
What is a parent class in java?
In Java list the methods that can be overridden?
What are variable names?
What is the association?
What’s the difference between constructors and other methods?
what is collatration?
Give me example of derived data types.
Is this valid in java ? Can we instantiate interface in java?
When the constructor of a class is invoked?
What is instance example?
What is the current version of java?