can you create interface instance ?
Answer Posted / anil
That it is not creating the instance of the interface. The
class which is there on the right side is called anonymas
call.
It is correct when the statement is as below
Test t =new Test(); he should give the ';' after the
paranthesis not after the '}'.
Please refer anonymas classes for other information how
they works...
Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
Does collectionutils isempty check for null?
Does the order of public and static declaration matter in main method?
How do you join strings in java?
Is null == null in java?
Can we extend immutable class?
How do you sort in java?
What is mvc in java?
Explain access modifiers in java.
What are the differences between throw and throws?
How hashmap increases its size in java?
Difference between method overloading and method overriding in java ?
What is the tradeoff between using an unordered array versus an ordered array?
When should I use stringbuffer?
How will you print number in reverse (descending) order in BST.
what is the difference between Object Based Language and Object Oriented Language?