Learning to Program
The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications.
They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". The Java Tutorials primarily describe features in Java SE 8. For best results, download JDK 8. What's New. Java TCP Sockets and Swing Tutorial. By Ashish Myles (2001-04-04) Introduction This tutorial is aimed for programmers with at least a little experience with Java.
For introductory material on Java, check out Sun's Java Tutorial and Java Documentation, which can be accessed from Sun's Java home page.