1: //GenericConstructorDemo.java 2: //Use a non-generic clss whose constructor is generic. 4: public class GenericConstructorDemo 5: { 6: public static void main(String args[]) 7: { 8: GenericConstructor test = new GenericConstructor(100); 9: GenericConstructor test2 = new GenericConstructor(123.5F); 10: test.showValue(); 11: test2.showValue(); 12: } 13: }