Elektrine lite

← Feed

@mehmandarov@mastodon.social

2026-10-21 08:46 UTC

A friendly reminder that #Java #HelloWorld looks like this since Java 24: void main() { println("Hello World"); } No, it is not "public static void main..." anymore. 🫶

Replies (1)

  • @mehmandarov@mastodon.social 2026-10-21 14:41

    Note: For Java 25 and onwards, you either statically import it with import static java.lang.IO.*; and use it like in the code above, or add IO.println("Hello World"); (which is a better practice!).

    Open ##5234455