can you create interface instance ?

Answer Posted / ravi jain

In my point of view Uday is wrong..

In his code he creates a anonymous class that implements Test
interface.

so, we can't say this is an object of interface.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about join() method?

533


Explain constructors and types of constructors in java.

635


What are the difference between composition and inheritance in java?

504


How do you end a program?

538


How do you calculate square roots?

566






What is the difference between choice and list?

586


What is style and indentation?

540


What are functions in java?

493


Explain about exception propagation?

579


Which variables are stored in heap?

533


What is the difference between this() and super() in java?

529


is there a separate stack for each thread in java? : Java thread

529


What does file separator do in java?

526


What are the access modifiers in java?

579


What is meant by memory leak?

531