📝 Question
#2316
In Inet Address class, which method returns the host name of the IP Address?
✓
Correct Answer
B. Public String getHostAddress()
💡
Explanation
In Inet Address class public String getHostname() method returns the host name of the IP Address. The getHostAddress() method returns the IP address of the given host name.
⌨️ Press
A
B
C
D
to select