Networking in Java
Networking is the capability of different computers to make connections with each other and to exchange information.
In Java, networking involves classes in the java.net package, which offers support for many different kinds of networking operations, including connecting and retrieving files by HTTP and FTP, as well as working at a lower level with basic UNIX-like sockets.
The easiest way to use Java's network capabilities is to create applications because they aren't subject to the same default security policies as applets. Applets cannot connect to any networked machine other than the one that hosts the server they were loaded from. Even with this restriction, you can accomplish a great deal and take advantage of the Web to ...
Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.