Each package defines a number of classes, interfaces, exceptions,
and errors. For example, the java.net
package contains these,
interfaces, classes, and exceptions:
ContentHandlerFactory
FileNameMap
SocketImplFactory
URLStreamHandlerFactory
ContentHandler
DatagramPacket
DatagramSocket
DatagramSocketImpl
HttpURLConnection
InetAddress
MulticastSocket
ServerSocket
Socket
SocketImpl
URL
URLConnection
URLEncoder
URLStreamHandler
BindException
ConnectException
MalformedURLException
NoRouteToHostException
ProtocolException
SocketException
UnknownHostException
UnknownServiceException