How many getter method does InetAdress class contain?

 The InetAddress class contains four getter methods that return the hostname as a string and the IP as both a string and a byte array. They are

1. public String getHostName()

2. public String getCanonicalHostName()

3. public byte[] getAddress()

4. public String getHostAddress()

Reactions

Post a Comment

0 Comments