Unit3
Unit3
Output:
Host Name: www.abc.com
IP Address: 206.51.231.148
• The Java class CacheRequest stores resources in ResponseCache,
while the CookieHandler implements an HTTP state management
policy.
• The URL class is the entry point to internet sources, and the
URLConnection class provides control on server interaction and
allows users to verify headers and configure header fields in client
requests.
The Java.net package includes several interfaces for easy access to
network resources.
https://www.abc.com/java-tutorial
A URL contains many information: