can you create interface instance ?
Answer Posted / ramu
hey uday u r wrong
In your program you are not created obj for interface, you have given anonymous implementation for 'Test' interface and instantiated that anonymous class only but not the interface.
for conformation call getClass() on 't'.(t.getClass())
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are examples of modifiers?
What is the use of java?
what state does a thread enter when it terminates its processing? : Java thread
What is the default value of an object reference declared as an instance variable?
Is there any tag in htm to upload and download files?
How do you reverse a string in java?
How to create a custom exception?
What is methodological framework?
What is this () in java?
Can one thread block the other thread?
What is the difference between pass by reference and pass by pointer?
What is exception propagation?
What is the use of System class?
Why java is considered dynamic?
What are thread safe functions?