Question: What will be the output? String str = hello, world!; char ch = s.charAt(0); System.out.println(ch+str); str = str.toUpperCase(); System.out.println(str); ch = ch.toUpperCase(); System.out.println(ch);
What will be the output?
String str = "hello, world!";
char ch = s.charAt(0);
System.out.println(ch+str);
str = str.toUpperCase();
System.out.println(str);
ch = ch.toUpperCase();
System.out.println(ch);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
