Java Array Assignment Output Behaves Differently For Two

Java Array Assignment Output Behaves Differently For Two