How the Spark Happens
1. Charge Accumulation (Charging by Friction)
When two different surfaces rub against each other, electrons are transferred from the material with lower electron affinity to the one with higher affinity. This is called charging by friction. Your body becomes "charged" relative to the car, and because you are a conductor, the charge distributes itself over your surface.
2. Electric Field and Induction
As your finger approaches the metallic handle, the charge on your skin causes electrostatic induction in the metal. This creates a high potential difference (voltage) across the tiny air gap. A very strong electric field is established in that space.
3. Dielectric Breakdown
Air is typically an insulator, but it has a limit called dielectric strength (about 3×106 V/m). When the electric field in the gap exceeds this value, the air molecules become ionized. The air "breaks down" and starts acting like a conductor.
4. Electrostatic Discharge
Once the air becomes a conducting path, the accumulated charges flow instantly to reach equilibrium. This rapid movement of charge is an electrostatic discharge. The energy released during this discharge is what produces the heat, sound, and the visible spark.