Java Check a Valid TCP Port Number How to implement a Java utility class to valid whether a port number is a valid TCP port or not in Java programming language.