Which of the following describes the effect of replacing the statement in line 8 of the method with result = arr[j];?

a. It results in a compilation error.
b. It assigns the value of arr[j] to the variable 'result'.
c. It removes the element at index j from the array 'arr'.
d. It swaps the values of arr[j] and arr[8].