System.out.println(str1.toUpperCase());This statement prints the string "HELLO".
System.out.println(str2.charAt(6));In "Java Programming", index 6 corresponds to the letter 'r'.
System.out.println(str1.indexOf('l'));
In the string "Hello", the first 'l' appears at index 2.
System.out.println(str1.replace('l', '*'));
This will output: "He**o" — as both 'l's are replaced with '*'.If vector \( \mathbf{a} = 3 \hat{i} + 2 \hat{j} - \hat{k} \) \text{ and } \( \mathbf{b} = \hat{i} - \hat{j} + \hat{k} \), then which of the following is correct?