Skip to content
Quiz · Strings · lesson 4 of 11

Quiz — toUpperCase without assignment

What does the program print?

JAVA
public class Main {
    public static void main(String[] args) {
        String s = "java";
        s.toUpperCase();
        System.out.println(s);
    }
}