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
Is c better than java?
What is a boolean used for?
How do you write a conditional statement?
Outline the major features of java.
What are strings in physics?
Explain where variables are created in memory?
What are Normalization Rules? Define Normalization?
What is token in java?
How would overload a function based on return type?
What is linked hashmap and its features?
What is the use of http-tunneling in rmi?
Can java arraylist hold different types?
What are the important features of Java 9 release?
Differentiate between the constructors and methods in java?
Write a method to check if input string is palindrome?