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