Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

main method

The method where a Java program starts running.

The main method is the entry point the java launcher calls; in Java 25 it can be written as void main() as well as the traditional public static void main(String[] args).

Examples

  • void main() { ... } in a compact source file, or public static void main(String[] args) in a classic class.

Read the full section →