An unstable nucleus undergoes gamma decay. How does the nucleus change?

It becomes more stable by releasing energy and particles.

It becomes more stable by gaining energy

It becomes more stable by releasing energy

It becomes less stable by releasing energy and particles.

It becomes more stable by releasing energy.