What was the alleged justification for all of Israels neighbors attacking on day one of the state of Israel Is Hamas hostility driven by the same mentality ?

The reasons are ethnic cleansing, massacres, and oppression of the indigenous Palestinian natives.