Male trees produce pollen. Their flowers have anthers, but no pistils.
Female trees produce seed. Their flowers have pistils, but no anthers.
Some trees have only male flowers; others have only females flowers. A
few have separate male and female flowers on the same tree.
For more information consult any textbok on botany or "plant science".