The program below does not compile. Which statement correctly describes the problem?
class Factory<T> {
T create() {
return new T();
}
}
public class Main {
public static void main(String[] args) {
System.out.println(new Factory<StringBuilder>().create());
}
}
javac: "unexpected type – required: class, found: type parameter T".