Groovy web console

subscribe to the feed Subscribe
to this
site
String VS GString (via #groovywebconsole)
tweet this snippet Tweet
this
script

String VS GString

Published 6 months ago by Anonymous with tags string gstring
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
x=1
println "abc".getClass() // java.lang.String
println "$x".getClass()  // org.codehaus.groovy.runtime.GStringImpl