What is the use of InetAddress class? Write a program to retrieve IP and MAC addresses?
Marks: 5
Year: 2022 Final TU FOHSS
1. Use of InetAddress Class Definition The InetAddress class in Java (from java.net package) represents an IP address of a host and provides methods to interact with it. Uses - To obtain IP add