These two rays are both forms of ionizing radiation. When they hit an atom, they have enough energy to cause the atom to become ionized.
Work Step by Step
This has a negative effect on human health. Prolonged exposure to the sun, for example, causes burns on the skin and raises future cancer risk.