Here are the results from Java 8 on Mac OS X. Java 8 was released in March 2014 and has the following output. Notice TLS 1.1 and 1.2 are enabled by default.
riemann$ javac ProtocolTest.java && java ProtocolTest Supported Protocols: 5 SSLv2Hello SSLv3 TLSv1 TLSv1.1 TLSv1.2 Enabled Protocols: 4 SSLv3 TLSv1 TLSv1.1 TLSv1.2
riemann::~$ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Here are the results from Java 8 on Mac OS X. Java 8 was released in March 2014 and has the following output. Notice TLS 1.1 and 1.2 are enabled by default.
riemann$ javac ProtocolTest.java && java ProtocolTest
Supported Protocols: 5
SSLv2Hello
SSLv3
TLSv1
TLSv1.1
TLSv1.2
Enabled Protocols: 4
SSLv3
TLSv1
TLSv1.1
TLSv1.2
riemann::~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)