Created
January 29, 2014 13:42
-
-
Save scheakur/8688222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URL; | |
import java.security.Security; | |
public class Test3 { | |
public static void main(String... args) throws Exception { | |
Security.setProperty("networkaddress.cache.ttl" , "0"); | |
URL url = new URL("http://google.com"); | |
for (int i = 0; i < 100; i++) { | |
System.out.println(url.equals(new URL("http://google.com"))); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment