In moving train, velocity of man is equal to velocity of train. When the ball is thrown upwards, then there is the change in vertical component of velocity but the horizontal component of velocity equal to velocity of man will remain same. Hence, the ball will return to throwers hand.