Other ways of generating cavitation voids involve the local deposition of energy, such as an intense focused laser pulse (optic cavitation) or with an electrical discharge through a spark. These techniques have been used to study the evolution of the bubble that is actually created by locally boiling the liquid with a local increment of temperature.