On the spectral properties of some classes of operators