Skip to main content

Java net Package

The Java net package provides a collection of classes and interfaces for network programming in Java. This package contains classes for working with TCP/IP sockets, UDP sockets, URL handling, and network protocols such as HTTP, FTP, and SMTP.

Some of the important classes in the Java net package are:

  1. URL: This class represents a Uniform Resource Locator and provides methods for accessing the various components of a URL.

  2. URLConnection: This class represents a connection to a URL and provides methods for setting and retrieving header fields, reading from and writing to the connection, and handling authentication.

  3. InetAddress: This class represents an Internet Protocol (IP) address and provides methods for performing name resolution and other network-related operations.

  4. Socket: This class represents a client-side socket and provides methods for connecting to a server, sending and receiving data, and closing the socket.

  5. ServerSocket: This class represents a server-side socket and provides methods for binding to a specific port, accepting client connections, and handling client requests.

  6. DatagramPacket: This class represents a UDP packet and provides methods for sending and receiving packets over a network.

Overall, the Java net package provides powerful tools for developing network-based applications and services in Java.

Where is Java net package?

net package are exist in java.net package.

What is included in Java net?

There is file directory of java.net package.

  •  doc-files
  • AbstractPlainDatagramSocketImpl.java
  • AbstractPlainSocketImpl.java
  • Authenticator.java
  • BindException.java
  • CacheRequest.java
  • CacheResponse.java
  • ConnectException.java
  • ContentHandler.java
  • ContentHandlerFactory.java
  • CookieHandler.java
  • CookieManager.java
  • CookiePolicy.java
  • CookieStore.java
  • DatagramPacket.java
  • DatagramSocket.java
  • DatagramSocketImpl.java
  • DatagramSocketImplFactory.java
  • FileNameMap.java
  • HostPortrange.java
  • HttpConnectSocketImpl.java
  • HttpCookie.java
  • HttpRetryException.java
  • HttpURLConnection.java
  • IDN.java
  • InMemoryCookieStore.java
  • Inet4Address.java
  • Inet4AddressImpl.java
  • Inet6Address.java
  • Inet6AddressImpl.java
  • InetAddress.java
  • InetAddressContainer.java
  • InetAddressImpl.java
  • InetSocketAddress.java
  • InterfaceAddress.java
  • JarURLConnection.java
  • MalformedURLException.java
  • MulticastSocket.java
  • NetPermission.java
  • NetworkInterface.java
  • NoRouteToHostException.java
  • PasswordAuthentication.java
  • PortUnreachableException.java
  • ProtocolException.java
  • ProtocolFamily.java
  • Proxy.java
  • ProxySelector.java
  • ResponseCache.java
  • SdpSocketImpl.java
  • SecureCacheResponse.java
  • ServerSocket.java
  • Socket.java
  • SocketAddress.java
  • SocketException.java
  • SocketImpl.java
  • SocketImplFactory.java
  • SocketInputStream.java
  • SocketOption.java
  • SocketOptions.java
  • SocketOutputStream.java
  • SocketPermission.java
  • SocketTimeoutException.java
  • SocksConsts.java
  • SocksSocketImpl.java
  • StandardProtocolFamily.java
  • StandardSocketOptions.java
  • URI.java
  • URISyntaxException.java
  • URL.java
  • URLClassLoader.java
  • URLConnection.java
  • URLDecoder.java
  • URLEncoder.java
  • URLPermission.java
  • URLStreamHandler.java
  • URLStreamHandlerFactory.java
  • UnknownHostException.java
  • UnknownServiceException.java
  • package-info.java




Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment