1. [20%] Type the following sequence of Java statements in the IDE: String firstName = “Harry_Potter”; System.out.println(firstName.toUpperCase()); System.out.println(firstName); Does the toUpperCase method change the string on which it is invoked?
1. [20%] Type the following sequence of Java statements in the
IDE:
String firstName = “Harry_Potter”;
System.out.println(firstName.toUpperCase());
System.out.println(firstName);
Does the toUpperCase method change the string on which it is invoked?