Why does this code run without any exceptions?
public static void main(String args[]) {
    List<Integer> a = new ArrayList<Integer>();
    try {
        a.getClass()
            .getMethod("add", Object.class)
            .invoke(a, new Double(0.55555));
    } catch (Exception e) {
        e.printStackTrace();
    } 
    System.out.println(a.get(0));
}
 
     
     
     
     
     
    