Java.net package wraps internet and networking concepts in Java.
Network socket: A network socket is used to deliver packets through a network.
Proxy server: A proxy server is used to overcome restrictions for the default server. It is used for filtering requests and caching. Bandwidth could be significantly reduced by the use of a proxy server.
Internet addressing: Internet address is used to locate a computer in the internet. Initially 32 bit values were used for Internet addressing known as IPv4 (Internet Protocol Version 4). Nowadays, IPv6 (Internet Protocol Version 6) is also used which uses 128 bit values.
Domain name System (DNS): It is a difficult task to remember a website by its IP address like 126.96.36.199. Hence, domain name system is used for naming domains, say, ww.moreprocess.com.
Classes defined in java.net package:
- Socket URLEncoder
Interfaces defined in java.net package: