GROOVY Questions and Answers

Explain how Groovy string is expressed?

Groovy string is referred as Gstring.

  • It is surrounded by double quotes, for regular strings it uses single quotes
  • It may contain Groovy Expressions noted in ${}
  • Square bracket syntax may be applied like charAt(i)