New insight into the dispersion characteristics of electrostatic waves in ultradense plasmas: electron degeneracy and relativistic effects