Java InetAddress getAddress() methodThe getAddress method of Java InetAddress class returns the IP address associated with this object as an array of bytes in network order. That means the first element of the array contains the highest order byte, and the last element of array contains the lowest order type. Syntax:ReturnsThe getAddress() method of Java InetAddress class returns the raw IP address of this object. Example 1Test it NowOutput: 1. [B@1540e19d 2. [B@677327b6
Next TopicInetAddress Class
|