Write a statement in Java to extract the port number of an InetSocketAddress named sockAd.

Question:

Write a statement in Java to extract the port number of an InetSocketAddress named sockAd.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: