A solar water heater works by using an array of solar collectors to collect solar energy and transfer it to heat water stored in an insulated tank. During the day, water circulates through the collectors and is heated, with the hot water then stored in the tank for various applications like homes, pools, hospitals and more. It has key components like solar panels, a storage tank, and connecting pipes, and provides advantages such as low cost and maintenance over time.