how this code works (return type undefined)
generics, T . "undefined". , : . Task<T>, .
, Task<T>. ( , - , , , , , StackOverflow.)
, , Java , Task<T> execute(). , :
public class Boat { ... }
public class Car { ... }
public CarFactory implements Task<Car> {
public Boat execute() { ... }
}