The full form of SONAR is Sound Navigation and Ranging.
It's a navigational technique that employs sound propagation. The principle of SONAR is sound wave reflection (echo).
Active sonar transducers send a sound pulse into the water. The sound pulse bounces off an item along its path if an object is present, sending an "echo" back to the sonar transducer.
The transducer measures the signal's intensity if it has signal reception capabilities.
It is used to detect distant things as well as communicate with other devices, including submarine communication and submarine navigation.
Passive SONAR simply listens for the sound emitted by vessels, whereas active SONAR emits sound pulses and listens for echoes.