An electronic stud finder uses sensors to detect changes in density behind drywall, while a magnetic stud finder relies on magnets to locate nails or screws used in stud construction.