Online Java Compiler By
JavaTpoint.com
class A3{ static{ System.out.println("static block is invoked"); System.exit(0); } }
Output