Freshwater fish swallow and expel water through their gills through a process called osmosis. They also swallow water when they swallow food, and this water too gets expelled through the gills.
Saltwater fish deliberately swallow water to maintain the salt concentration in their body. If the salt concentration in body goes high, they’ll expel the excess salt and swallow more water if the salt concentration goes down.
Latest Answers