class Test{ interface Map{ K put(K k, V v); } class HashMap implements Map{ } { HashMap map = new HashMap(); map.put(new Integer(1), new Integer(1)).byteValue(); } }