I am trying to teach theory, not compiler optimization.
Type: Posts; User: Cornix
I am trying to teach theory, not compiler optimization.
Look at the following code:
String a = "abc";
String b = "abc";
boolean equal = a == b;
Here you have 2 variables of type String, one of them is a and one of them is b.
Both variables are...