class Test { public static void main(String[] args) { Foo f = new Foo(); System.out.println(f.get()); } } class Foo<T> { public T1 get() { return null; } }