You swim and swim until you reach the shore. You are all tired out.
Oh no you realize that there is nothing but sand. You stay there for a few days, but with no food or drinkable water, no way of survival. You die.