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
What is an example of procedure?
Can a final variable be null?
Name few java.lang classes introduced with java 8 ?
Can a serialized object be transferred via network?
What is the difference between Java and C++?
What happens when main () method is declared as private?
How do you remove an element from an arraylist in java?
What is map java?
What is connection class in java?
What are the differences between stringbuffer and stringbuilder?
What are the types of methods in java?
What are the new features in java 8? Explain
Can we create a constructor in abstract class?
What is the use of a conditional inclusion statement in Java ?
What will happen when using pass by reference in java?