title: Non-blocking sockets
body: <p>What's the best way to implement a non-blocking socket in Java? </p>
  
  <p>Or is there such a thing? I have a program that communicates with a server through socket but I don't want the socket call to block/cause delay if there is a problem with the data/connection.</p>