iferença entre a adição de literais de string e objetos de stri
Qual é a diferença entre uma adição de String Literal e String Objec
Por exempl
String s1 ="hello";
String s2 ="hello1";
String s3 ="hello" + "hello1";
String s4 ="hellohello1";
String s5 = s1 + s2;
System.out.println(s3 == s4); // returns true
System.out.println(s3 == s5); // return false
System.out.println(s4 == s5); // return false
Why dos3
/s4
não aponte para o mesmo local ques5
?