What will be the output of the program?
Output: 15 15
The reference variables a1 and a3 refer to the same long array object. When the [1]
element is updated in the fix() method, it is updating the array referred to by a1. The
reference variable a2 refers to the same array object.
So Output: 3+7+5+" "3+7+5
Output: 15 15 Because Numeric values will be added
Submit Your Solution hear: