This is a theoretical question, as an Israeli citizen, this doesn't apply to me.
There have been several questions about not stamping the passport on entry and departure from Israel to avoid having an Israeli stamp in case one would later travel to an enemy country, or is a citizen / resident of one.
And the answer is simple, Israel doesn't stamp passports but issues an entry and departure slip, also, make sure not to enter by land as you will have a Jordanian or Egyptian stamp from a border crossing with Israel.
But, even in those cases, you would still have a departure and entry stamp with a difference of dates and nothing in between. A rigorous inspection of one's passport would reveal this inconsistency and could land the traveler in trouble.
Is it possible to ask the authorities in other countries to not stamp the passport on departure and entry because you are traveling to/ from Israel and don't want any signs of the trip in your passport?