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 does split work in java?
What are scriptlets?
What is the difference between super class & sub class?
Why do we need wrapper class?
What is a nested class?
What is %d in printf?
How many bits is size_t?
Why map is used in java?
What is difference between path and classpath variables?
Why java is a platform independent? Explain
Which is better arraylist or vector?
Is binary a low level language?
What is the use of a conditional inclusion statement in Java ?
What is the meaning of course?
What is final modifier?