- Java EE Webinar Replay
- Putting Hypermedia Back in REST with JAX-RS
- Java Community Event in Japan
- Java Euro Tour
- New Java Champion Mark Heckler
- NightHacking Tour in Japan
- Microservices Hackathon
- New Java Champion Ivar Grimstad
- Java ME Embedded 8.3 Release
- Step-by-Step High Availability with Docker and Java EE
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!