title: TLS version used in JDK 8
body: <p>We initialise our SSL context with the following code and are running on Java 8.</p>
  
  <pre><code>SSLContext context = SSLContext.getInstance("SSL");
  </code></pre>
  
  <p>Since Java 8 uses TLSv1.2 by default? Does it mean the above code will start sending TLSv1.2 requests if my server supports it.</p>
  
  <p>Want to understand if "SSL" protocol name is just an alias but java runtime starts sending the requests with default TLS version.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I ran my code against "<a href="https://www.google.co.in/" rel="nofollow noreferrer">https://www.google.co.in/</a>" and found this in fiddler</p>
  
  <pre><code>A SSLv3-compatible ClientHello handshake was found. Fiddler extracted the parameters below.
  
  Version: 3.3 (TLS/1.2
  </code></pre>
  
  <p>And also if i change my protocol to TLSv1 which only supports 1.0. Then Fiddler tells me</p>
  
  <pre><code>A SSLv3-compatible ClientHello handshake was found. Fiddler extracted the parameters below.
  
  Version: 3.1 (TLS/1.0)
  </code></pre>
  
  <p>So, I guess the above code with "SSL" protocol name should work well with TLS 1.2 servers.</p>