InterviewSolution
Saved Bookmarks
| 1. |
Can Diamond operator be used with anonymous class in Java 9? |
|
Answer» Yes, Diamond operator can be USED with anonymous class in Java 9. It was INTRODUCED in Java 7 to make code more readable. Till Java 7, ENHANCEMENTS weren’t introduced for Diamond operator to use with Anonymous inner classes. |
|