MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 7 as of 2026-06-05 17:39:10
  • Java
  • OpenJDK21

OpenJDK21

Install from Adoptium

  • https://adoptium.net/temurin/releases

  • https://github.com/adoptium/temurin21-binaries/releases/tag/jdk-21.0.7%2B6

   1 cd ~
   2 wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.7%2B6/OpenJDK21U-jdk_x64_linux_hotspot_21.0.7_6.tar.gz
   3 tar tvzf OpenJDK21U-jdk_x64_linux_hotspot_21.0.7_6.tar.gz 
   4 tar xvzf OpenJDK21U-jdk_x64_linux_hotspot_21.0.7_6.tar.gz 
   5 nano ~/.bashrc
   6 JAVA_HOME=/home/vitor/jdk-21.0.7+6/
   7 MAVEN_HOME=/home/vitor/apache-maven-3.8.6/
   8 PATH=$JAVA_HOME/bin/:$PATH:$MAVEN_HOME/bin/
   9 # reload bashrc
  10 # . ~/bashrc 
  11 

Records

  • https://openjdk.org/jeps/395

Introduced in release 16.

To model data as data. Easy and concise manner to declare data-carrier classes that by default make their data immutable. Can be described as nominal tuples.

   1   record Point(int x, int y) { }
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01