Explosives don’t explode out of nowhere. Every reaction needs some energy to initiate the reaction and, apart from some materials such as white phosphorus, every of those energies is higher than the energy of room temperature.
Some explosives need Oxygen, if you produce these at high temperatures you always produce them in environments without oxygen.
Latest Answers