The important difference between gamma rays and
X-rays is that gamma rays are produced from within the nucleus of an atom when an unstable nucleus decays, whereas X-rays are produced by bombarding an atom with electrons.