Newton's First Law of Motion states "Every object in a state of uniform motion tends to remain in that state of motion unless an external force is applied to it".
The ball is already moving forwards (with you and the truck) before you throw it. So, in accordance with Newton's First Law, it will continue to do so unless something stops it (which it doesn't).
The upward force applied to the ball, as you throw it, acts as a vector at right-angles to the forward motion (and can thus have no effect whatsoever upon that forward motion).
Hence the ball will fall back into your hands.
Well that's the way that physics worked when I used to teach the subject but, with all these changes to the curriculum, who knows these days?
;-)