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 arraylist class in java?
Does garbage collection occur in permanent generation space in jvm?
What is object cloning in Java?
How do I stop concurrentmodificationexception?
How many types of methods are there in java?
Is array size fixed in java?
What are static blocks and static initalizers in java ?
What are the differences between checked exception and unchecked exception?
What is the different between get and post?
What is difference between identifier and variable?
Differentiate between run time error and syntax error.
what is difference between equals and ==?
What does this mean java?
What is charat java?
Explain an algorithm to find depth of a binary tree.