lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
141 stars 167 forks source link

Clarify why `"hej" == "hej"` sometimes evaluates to `true` in Java, i.e mention string interning in J.1.67 or J.1.68. #783

Closed EliasAAradsson closed 1 month ago

EliasAAradsson commented 6 months ago

See "Appendix J Introduktion till Java" slide J.1.67 and J.1.68 to see what I'm on about. Perhaps add this link: https://stackoverflow.com/questions/10578984/what-is-java-string-interning