I am learning generics in Java. How can I return an empty parameterised class Box in the method getBox? Thanks for helping.
public static <T> class Box<T> {
private T object;
public static <T>Box<T> getBox() {
return new Box<T>();
}
}