The core collapse phase is so dense and energetic that only neutrinos are able to escape. As the protons and electrons combine to form neutrons by means of electron capture, an electron neutrino is produced. In a typical Type II supernova, the newly formed neutron core has an initial temperature of about 100 billion kelvins, 104 times the temperature of the Sun's core. Much of this thermal energy must be shed for a stable neutron star to form, otherwise the neutrons would "boil away". This is accomplished by a further release of neutrinos. These 'thermal' neutrinos form as neutrino-antineutrino pairs of all flavors, and total several times the number of electron-capture neutrinos. The two neutrino production mechanisms convert the gravitational potential energy of the collapse into a ten-second neutrino burst, releasing about 1046 joules (100 foe).