can you create interface instance ?
Answer Posted / sanddep
what uday did here was not creating the instance of the interface but he implemeted the interface through the anonymous class.Now the instance created is of that anonymous class which has implemented the interface and its reference is stored in the variable t.
Regards
Sandeep
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the difference between future and callable interface in java?
What is a war file?
What do you mean by composition in java?
Why can't we override private static methods?
What is null statement?
What are strings in physics?
Why destructor is not used in java?
What is meant by local variable and instance variable?
What is a nonetype?
What is square root in java?
What is string syntax?
What Is Query Throttling in java?
How to find the index of the largest number in an arraylist java?
What is meant by nested loop?
What are jee technologies?