Answer: Sonar is used mainly in submarines that remain underwater
Step-by-step explanation:
Sound travels through water a lot faster than through air. Sonar is used in submarines because having a window in the depths of the ocean would not be practical because of the amount of light down there and the pressure down there is a lot more than at sea level.
If I was given more context I'm sure it could give a more helpful answer.