Curly braces in “new” expression? (e.g. “new MyClass() { … }”)

This is the syntax for creating an instance of anonymous class that extends Handler. This is part of Java.

Leave a Comment