Groovy has two string types the java java.lang.String
and groovy.lang.GString
, as well as multiple forms of string literals (see syntax and examples).
The main difference between the two types of strings is that GString supports string interpolation.