Download NetBeans 21 today, paste the code examples above, and explore the power of modern Java. Do you use NetBeans 21? Share your favorite feature in the comments below!

NetBeans remains one of the most robust, free, and open-source IDEs for Java development. With the release of Apache NetBeans 21 , the IDE has introduced better support for Java 21 (LTS), improved Gradle integration, and a smoother UI.

public record Person(String name, int age) {} // Usage Person p = new Person("Ana", 28); System.out.println(p.name()); // Outputs: Ana Virtual Threads (Project Loom – Java 21) try (var executor = Executors.newVirtualThreadPerTaskExecutor()) executor.submit(() -> System.out.println("Hello from a virtual thread"));