Skip to content

Instantly share code, notes, and snippets.

@tbelmega
Created March 17, 2019 01:41
Show Gist options
  • Save tbelmega/1d8d561748fa18aa83847fe88f61b427 to your computer and use it in GitHub Desktop.
Save tbelmega/1d8d561748fa18aa83847fe88f61b427 to your computer and use it in GitHub Desktop.
val str1 = "Production"
val str2 = "Production" // referentially equal, String pool
val str3 = String("Production") // new object in memory, not referentially equal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment