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
What is the use of math abs in java?
What is an enumeration?
What is command line argument in java?
What is a JAR file?
Why do we create threads in java?
What is the difference between a constructor and a method?
What is keyword in oop?
What is a Hash Table? What are the advantages of using a hash table?
What are runtime exceptions?
How are destructors defined in java?
Tell me a few examples of final classes defined in Java API?
How to create a custom exception?
How does system arraycopy work in java?
Differentiate between == and equals().
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?