Curly braces in “new” expression? (e.g. “new MyClass() { … }”) May 28, 2023 by Tarik This is the syntax for creating an instance of anonymous class that extends Handler. This is part of Java.