public class DemoStatic {
  static Con con;

  static {
    try {
      con = new Con();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

  public static void main(String[] argv) {
    System.out.println(con);
  }
}

class Con {
  public Con() throws Exception {
  }

  public String toString() {
    return "Con";
  }
}