can you create interface instance ?
Answer Posted / anthony
cool buddy. Nice way to fool people.
If you really need to check the concept, put the code in
eclipse or netbeans and see. The method in the anonymous
class would show as overriden from interface Test and if
you remove the method from the anonymous class, it would
not compile. So at the end you are having an instance of
class implementing the interface.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
who can i handle multiple client in RMI
What is formatted output?
If goto and const is reserve words than why it is not work in java?
What do you mean by append?
State some situations where exceptions may arise in java?
What is memory leak and how does java handle it?
can used Protected Class outside Function.?
How will you compute size of a structure?
What are Normalization Rules? Define Normalization?
What is method overloading with type promotion?
Why stringbuilder is not thread safe in java?
Why main method is static in java?
How does arraylist size increase in java?
What is fail fast in java?
What is a java applet? What is an interface?