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


Please Help Members By Posting Answers For Below Questions

How does split work in java?

535


What are scriptlets?

599


What is the difference between super class & sub class?

567


Why do we need wrapper class?

537


What is a nested class?

598






What is %d in printf?

534


How many bits is size_t?

545


Why map is used in java?

584


What is difference between path and classpath variables?

566


Why java is a platform independent? Explain

536


Which is better arraylist or vector?

575


Is binary a low level language?

513


What is the use of a conditional inclusion statement in Java ?

590


What is the meaning of course?

585


What is final modifier?

560