A heavier bullet, faster, slightly bigger hole, more energy.
Assuming the 40SW is going faster than the 9mm, which it usually isn't. It is heavier and bigger though.
Know the status of your weapon
Keep your muzzle oriented so that no one will be hurt if the firearm discharges
Keep your finger off the trigger until you have an adequate sight picture
Maintain situational awareness