What would be the output of the following program segments? Give reasons to justify your answer.
i) System.out.print(“Sum =”+6 + 2);
ii) System.out.print(“Sum = ”+ ‘B’+ ‘2’);
iii) System.out.print(“Sum = ”+ 6 + ‘B’);
iv) System.out.print(“Sum = ”+ (‘B’ + ‘a’));
v) System.out.print(“Sum = ”+ “B” + “a”);
Select the correct answer from above options