I have the following scenario:
URL u1 = new URL(\"http://www.yahoo.com/\"); URL u2 = new URL(\"http://www.yahoo.com\"); if (u1.equals(u2)) { System.out.prin
Strictly speaking they are not equal. The optional trailing slash (/) is only a common usage but not a must. You could display different pages for
http://www.yahoo.com/foo/
and for
http://www.yahoo.com/foo
It's even possible for the one you provided I believe the HTTP header could skip that slash.