• URLConnection Class : Java Networking

    URLConnecction Class In this blog, we will work with URLConnection Class. In this program, we use URLConnection class to connect with http://invisionsoftwaresolution.in/URLConnectionFile.html URL. After that, we will read URLConnectionFile.html file’s data using Java Coding. Program on URLConnection Class [java.net.* package] import java.io.*; import java.util.*; import java.net.*; class url3 { public static void main(String args[]) throws […]

  • 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 : Program on InterAddress Class import java.io.*; import java.net.*; class url1 { public static void main(String args[]) throws IOException { try […]