Predict the output of the following program.
Explanation: str.toUpperCase() returns ‘str’ in upper case. But,it does not change the original string ‘str’.
str.substring(x, y) returns a string from position ‘x'(inclusive) to position ‘y'(exclusive).
str.charAt(x) returns a character at position ‘x’ in the string ‘str’.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.