- JavaLand Conference Offers Thrills
- Free Open Source Tools for Maven, HTML5, IoT, and Java EE
- New Java Champions: Enrique Zamudio, Otávio Santana, and Freddy Guime
- New Java Champion: Jacek Laskowski
- Save the Date: 2015 JavaOne Brazil
- Java Magazine: Platform for Innovation
- NightHacking at Jfokus 2015
- A Young Woman Innovator Programs with Java
- Antoine Sabot-Durand Discusses CDI 2.0
Friday Sep 13, 2013
Monday Jul 16, 2012
By Janice J. Heiss on Jul 16, 2012
Oracle developer Jim Driscoll has a new article up on otn/java, titled “Introducing Groovy,” that shows readers how to master the basics of Groovy, a general-purpose scripting language that runs on the Java Virtual Machine (JVM) – and, as Driscoll emphasizes -- one that can largely be viewed as a superset of Java.
He presents a “Hello World” program that can be understood as either a Java or Groovy program and will compile and run in either environment. Driscoll takes readers through the intricate connections and disconnects between Java and Groovy. For example, Groovy is public by default and “Groovy deals with String objects using double quotation marks with strings” which “allows for variable substitution”. And, “there are also strings with single quotation marks.”
Driscoll illustrates his points with copious code that illustrates how Java developers can tweak their own knowledge of Java to take advantage of Groovy’s strengths, so that, by the end of the article, the (Java-informed) reader more or less understands Groovy.
Check out the article here.