it was not one war but two, which followed one another without a break.
The first war was fought between the Jews and the Arabs in the country. It started on the morrow of the UN General Assembly resolution of November 29, 1947, which decreed the partition of Palestine between a Jewish and an Arab state. It lasted until the proclamation of the State of Israel on May 14, 1948. That day marked the start of the second war - the one between the State of Israel and the neighboring countries, which threw their armies into the battle.
This was not a war between two countries for a piece of land between them, like the wars between Germany and France over Alsace. Neither was it a fratricidal struggle, like the American Civil War, where both sides belonged to the same nation. I categorize it as an "ethnic war".