The study of the stellar ultracompact objects is a topic of great importance in general relativity. The resolution of Einstein's field equations has allowed to obtain exact solutions for relativistic stars and find mathematical appropriate models which allow to explain the nature of a neutron stars and the quasars. In this text there appear some applications of the theory of the general relativity to the analysis of stellar configurations as the black holes, wormholes and dark energy stars.