- double brace
- ThreadLocal
- Instance Initializers
public class Foo { public Foo() { System.out.println("constructor called"); } static { System.out.println("static initializer called"); } { System.out.println("instance initializer called"); } }
- Enum – is a class
- try, finally, exception
public static int f() { try { throw new RuntimeException(); } finally { return 0; } }
- URL
new URL("http://www.yahoo.com").equals(new URL("http://209.191.93.52"))
=true