Consider the following string variables:
String str1 = "Hello";
String str2 = "Java Programming";
Write the code statements for the following in Java:
(a) To display the string str1 into upper case.
(b) To display the character at the index 6 in string str2.
(c) To display the index of the first occurrence of letter ‘l’ in the string str1.
(d) To display the string str1 after replacing letter ‘l’ with ‘*’.