01:package test; 02: 03:public class Test<X extends Number, Y extends RuntimeException> extends java.util.AbstractList<X> { 04: 05: private X singleton; 06: 07: public X get(int index) { 08: return singleton; 09: } 10: 11: public int size() { 12: return 1; 13: } 14: 15: public static void main(String... args) {