3 ms·
1. No, its not an anon inner class. Anon inner class is when you implement a interface, by defining its methods inline. 2. Yes, it is bad that we have to write
by abc_lisper 14y ago
1. No, its not an anon inner class. Anon inner class is when you implement a interface, by defining its methods inline.
2. Yes, it is bad that we have to write all that verbose code. Java's typechecker is useless where it could be most useful, by typechecking high level types. You have to write all this code everytime to make it happy.