• URL Class

    URL Class : Java Networking

    About URL Class URL class is inbuilt java.net package class, using of this class we can find protocol, host name, port number, file name and path of URL. URL is Universal Resource Locator. Example :  Website URL : http://www.isssearch.in:80/index.php  Protocol : http Host Name : www.isssearch.in Port : 80 Program on URL [java.net.* package] import java.io.*; […]

  • InetAddress

    InetAddress Class

    About InetAddress Class InetAddress is one class. Using of this class we can find HostName and HostAddress of any website URL. Example :  Website URL : www.isssearch.in  Host Name : www.isssearch.in Host Address : 108.170.42.218 Program on InterAddress Class import java.io.*; import java.net.*; class url1 { public static void main(String args[]) throws IOException { try […]