Duplicate :
|
The java.net.URL.equals can return true even if URLs denote different resources. It occurs when the hosts have the same InetAddress and the same path. It is often case of virtual webservers so for example http://www.netbeans.org/ is 'equal' to http://openide.netbeans.org.