Proxy HashCode() Example

Returns a hashcode for this Proxy.


Proxyclass HashCode() method example. This example shows you how to use HashCode() method.This method Returns a hashcode for this Proxy.

Here is the code:-
/* 
 * @Program that Returns a hashcode for this Proxy.
 * HashCode.java 
 * Author:-RoseIndia Team
 * Date:-23-Jun-2008
 */

import java.net.*;

public class HashCode {

    public static void main(String[] args) {
        SocketAddress ss = new InetSocketAddress("girish-desktop"8080);
        Proxy p = new Proxy(Proxy.Type.SOCKS, ss);
        //Returns a hashcode for this Proxy.
        System.out.println("Hashcode for this Proxy is: " + p.hashCode());
    }
}

Output of the program:-
 Hashcode for this Proxy is: 2134787638

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US