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
Explain about join() method?
Explain constructors and types of constructors in java.
What are the difference between composition and inheritance in java?
How do you end a program?
How do you calculate square roots?
What is the difference between choice and list?
What is style and indentation?
What are functions in java?
Explain about exception propagation?
Which variables are stored in heap?
What is the difference between this() and super() in java?
is there a separate stack for each thread in java? : Java thread
What does file separator do in java?
What are the access modifiers in java?
What is meant by memory leak?