Your program is compiled and executed on the server against a real JDK, then the standard output and any errors are returned to your browser. The Java standard library is available.
Provide a public class Main with a public static void main(String[] args) method. Anything printed with System.out.println shows up in the Output panel.
Execution is time-limited to keep the service responsive, and network access is restricted. Long-running programs may be stopped and reported as timed out.
Yes. Click Share to copy a URL that encodes your current program, so anyone who opens the link sees the same code.
Chat opens an AI assistant embedded in the playground. It can explain Java concepts, debug compile and runtime errors, and write code directly into the editor, then run it to confirm it works.