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
Why are generics used?
What is string literal in java?
Do extraneous variables affect validity?
What are methods and how are they defined?
Define "Access specifiers" in java.
Difference between Linked list and Queue?
What is basic syntax?
What are packages in java?
Explain java heap space and garbage collection?
What is the difference between a field variable and a local variable?
Is this valid in java ? Can we instantiate interface in java?
why Java does not support multiple inheritances?
What is string example?
What is the purpose of the strictfp keyword?
How can we avoid including a header more than once?