✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will be printed when the following code is executed?
String firstname = "John";
String surname = "Smith";
surname.toUpperCase();
System.out.print(firstname.charAt(0) + " " + surname);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!