Overview of Sockets API for Java 8

Applications in the Java 8 runtime can use native Java sockets with no restrictions, including the use of NIO classes and their methods.


Traffic from sockets is billed as outgoing bandwidth. The supported options are:

  • SO_KEEPALIVE
  • SO_DEBUG
  • TCP_NODELAY
  • SO_LINGER
  • SO_OOBINLINE
  • SO_SNDBUF
  • SO_RCVBUF
  • SO_REUSEADDR

Using sockets with the development server

You can run and test code using sockets on the development server, without using any special command line parameters.