Skip to content

Commit

Permalink
Add Java 25 sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
marchof committed Dec 10, 2024
1 parent e93e453 commit af0613f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site/content/jdk/25/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,19 @@ Java 25 will be the next long term support (LTS) release after [Java 21](../21).

{{< /jdkdetails >}}


## Sandbox

Instantly compile and run Java 25 snippets without a local Java installation.

{{< sandbox version="java25" mainsource="Java25.java" preview="true" >}}
{{< sandboxsource "Java25.java" >}}
import java.lang.reflect.ClassFileFormatVersion;

void main() {
var v = ClassFileFormatVersion.latest();
System.out.printf("Hello Java bytecode version %s!", v.major());
}

{{< /sandboxsource >}}
{{< /sandbox >}}

0 comments on commit af0613f

Please sign in to comment.