logo

Crowdly

What will be printed when the following code is executed? String firstname ...

✅ 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);

More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!