If I have understood your question correctly
You can Try this Method instead
boolean arrays(int[] arr1, int[] arr2)
{
for (int i = 0; i <= arr1.length - 1; i++)
for (int j = 0; j <= arr2.length - 1; j++)
if (arr1[i] > arr2[j])
return false;
return true;
}
About your last question, If you meant commented code instead of hidden code the answer is that
when arrays are constructed the default value is 0 so
arr1 = {0,0}
arr2 = {0,0}
so the results are false