Cantilevers operate on the principle of bending or oscillation due to an external force. When a force is applied to the free end, the cantilever bends or oscillates. The extent of this bending or oscillation can be measured with high precision, providing valuable data about the force or mass causing the deflection.