June 2018
Beginner
722 pages
18h 47m
English
One cannot change the String type value assigned to a variable without changing the reference. There are several reasons why JVM authors decided to do that:
System.out.println("s1" == "s1"); System.out.println("s1" == "s2"); String s1 = "s1"; System.out.println(s1 == "s1"); System.out.println(s1 == "s2"); String s2 = "s1"; System.out.println(s1 ...
Read now
Unlock full access