You can identify the java version by running this command:
JAVA CLASS(*version)
Then you will see a list list like this:
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 8.0.6.30 - pap6480sr6fp30-20210507_01(
SR6 FP30))
IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 202
10415_469669 (JIT enabled, AOT enabled)
OpenJ9 - c2bc063
OMR - fa000e8
IBM - 8165371)
JCL - 20210419_01 based on Oracle jdk8u291-b09
Java program completed
In the above you can see, that the java version is 1.8.0 update 291 from April 19th 2021.
Information about how to upgrade Java on the AS400 platform is found here:
https://www.ibm.com/support/pages/node/1117857
If the link above does not work, then you can also find it via this link:
https://www.ibm.com/support/pages/java-ibm-i
And here click: PTF groups and latest SR, FP: