What is the use of InetAddress class? Write a program to retrieve IP and MAC addresses?
Marks: 5Chapter: Unit 2: Internet Address (4Hrs)
Comprehensive questions and detailed answers for Unit 2: Internet Address (4Hrs). Perfect for exam preparation and concept clarity.
What is the use of InetAddress class? Write a program to retrieve IP and MAC addresses?
Write a program to show the IP and MAC address of the system and also check if the IP address is IPv4 or IPv6.