If you insist, you may follow this discussion of getting major and minor version of Java and prints it at console.
Regards to AES 256, by default Java version 1.8.0_171 already supports key size > 128 as default. Below are excerpt of <JAVA_HOME>/jre/lib/security/java.security
file:-
# Cryptographic Jurisdiction Policy defaults
#
# Import and export control rules on cryptographic software vary from
# country to country. By default, the JDK provides two different sets of
# cryptographic policy files:
#
# unlimited: These policy files contain no restrictions on cryptographic
# strengths or algorithms.
#
# limited: These policy files contain more restricted cryptographic
# strengths, and are still available if your country or
# usage requires the traditional restrictive policy.
#
# The JDK JCE framework uses the unlimited policy files by default.
# However the user may explicitly choose a set either by defining the
# "crypto.policy" Security property or by installing valid JCE policy
# jar files into the traditional JDK installation location. To better
# support older JDK Update releases, the "crypto.policy" property is not
# defined by default. See below for more information.
To test TLS connectivity with 256 cipher key strength, you may use SSLPoke program. Compile this program with javac
and run as below:-
$java -Djavax.net.debug=all SSLPoke microsoft.com 443 | grep 'Cipher Suite: TLS'
If SSL handshake and connection is successful, then cipher suite with key size > 128 will be printed at console.