I run the code on VSCode and IntelliJ and I get the following output: getStackTrace getStackTraceDepth main Stack Trace Depth:3 When I run it on CodeGym I get: getStackTrace getStackTraceDepth main invoke0 invoke invoke invoke callMainMethod execute execute main main Stack Trace Depth:12 Any ideas why I get different output on IntelliJ/VSCode from CG ?