- Tips and Tricks for Better Applications
- Java SE Webinar Replay
- 2016 JavaOne Registration Now Open
- New Java Champion Pratik Patel
- JavaFX Applications Across Devises
- New Release JDK 8u91 and JDK 8u92
- New Java Champion Axel Fontaine
- 2016 JavaOne Call for Papers Open
- Humanoid Robot Programming with Java
- New Java Champion Gunnar Hillert
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.
Insider News from the Java Team at Oracle!