Check Valid WWW Domain And HostName Java Examples 1 Comment / Java Tutorial / Domain, HostName, String This example include java code to check whether a given www domain or a host name string is a valid domain or not. You can see code comments for detail explanation.