JConf Peru 2025
Java 25, Nuevas características por Aurelio Garcia Ribeyro
Revisaremos las nuevas características publicadas en el JDK 25, desde mejoras en el lenguaje, pasando por librerías de seguridad, monitoreo y performance.
its affiliates switch (x.getYearlyFlights()) { case 0 -> … ; case 1 -> … ; case 2 -> issueDiscount(); case int i when i >= 100 -> issueGoldCard(); case int i -> ... appropriate action when i > 2 && i < 100 ...; }
Oracle and/or its affiliates public class PositiveBigInteger extends BigInteger { public PositiveBigInteger(long value) { } } super(value); if (value <= 0) throw new IllegalArgumentException("non-positive value"); // Potentially unnecessary work… but must be first
Oracle and/or its affiliates public class PositiveBigInteger extends BigInteger { public PositiveBigInteger(long value) { } } super(value); if (value <= 0) throw new IllegalArgumentException("non-positive value");
2025, Oracle and/or its affiliates public Sub(Certificate certificate) var publicKey = certificate.getPublicKey(); if (publicKey == null) throw ... byte[] certBytes = switch (publicKey) { case RSAKey rsaKey -> ... case DSAPublicKey dsaKey -> ... default -> ... }; super(certBytes); } Doesn't have to be the first line!
Oracle and/or its affiliates 1 ) Training and creation in a single run 2) Runt the app with the AOT Cache file $ java -XX:AOTCacheOutput=app.aot \ -cp app.jar com.example.App ... Subsequently, run the application specifying just the AOT cache: $ java -XX:AOTCache=app.aot -cp app.jar com.example.App ...
complementary technologies • Sessions are ~45% core JDK team + Oracle, ~55% Java ecosystem + Sponsors • Meet the Java Architects from Oracle's team • Livestreaming JDK 26 Launch and keynotes • Record all learning sessions for on-demand replay on youtube.com/java Core Tenants