The working principle of sonar is the same as this faculty of dolphins.