
642 • Java Programming
20.2 JAVA.NET PACKAGE
Suppose networking in Java is provided by the java.net package. The package provides the classes for
implementing networking applications. The java.net package can be roughly divided into two sections:
1. A low level API , which deals with the following abstractions:
Addresses , which are networking identifi ers, like IP addresses.
Socket , which is basic bidirectional data communication mechanism.
Interface , which describes network interface.
2. A high level API , which deals with the following abstractions:
URIs , which represent Universal Resource Identifi ers.
URLs , which represent ...