Why do coral reefs can live salt water?

why do coral reefs can live in salt water