Why does a compass needle get deflected when brought near a bar magnet?
When a compass needle is brought near a bar magnet, the compass needle experiences a deflection. This happens because of an interaction of magnetic fields of the compass needle and the bar magnet.