When a particle present on an energy level absrobs the energy it gets excited to the higher energy levels which can form the absorption spectra. When a particle present in the higher energy levels emits energy to get into lower energy levels it forms emission spectra. These phenomenons are explained by the particle nature of the atoms. Therefore, second option is the correct option.