If it happens, just make your way to an island, make sure it is clear of zombies, and fortify it.
Zombies and water dont mix.
Not according to the testimonies in World War Z. They'll just keep moving through the water for years until they get from one coast to another. Best bet is to string up zombie catching nets around your coastline.