class Main {
public static void main(String[] args) {
String s = "hello";
// s is never modified; a new string is returned
String upper = s.toUpperCase();
System.out.println(s + " " + upper);
}
}methods return new strings