Groovy for Java Developers Training

Course #:WA1761

Groovy for Java Developers Training

Groovy is a dynamic scripting and programming language for the Java platform.  It combines the dynamic features of modern scripting langauges such as Ruby and Python with familiar Java syntax.  To quote one of the Groovy developers: “Groovy is what Java would have been if it had been created in the 21st century.”

This course introduces the Java developer to the Groovy langauge.  The course focuses on understanding the internals of how Groovy works in addition to understanding the Groovy language syntax.  After taking this course developers will understand the Groovy syntax and be able to leverage existing Java classes within Groovy.

This class combines lecture with a unifying, hands-on experience, and open discussion that will help the developer quickly understand the benefits of Groovy and how to use the language.


This course is intended for experienced Java developers.


Participants should already have a solid understanding of Java programming.

  Three Days.

Outline of Groovy for Java Developers Training

1. Language Overview

  • What is Groovy?
  • What Groovy can do
    • Java programmers
    • Script programmers
    • Agile programming
  • Installing
  • Running Groovy scripts

2. Basic syntax and Scalar variables

  • Syntax rules
  • Numbers
    • Integers
    • Floats
    • BigDecimal
  • Strings
    • Double quoted
    • Single quoted
    • Here documents
    • Slash quoted
    • GStrings
  • Operators

3. Collections

  • Lists
  • Coding a closure
    • The it parameter
    • Passing multiple parameters
    • Naming parameters (the -> operator)
  • Maps
  • Ranges

4. Flow Control

  • If statements
    • The truth in Groovy
  • Switch statements
  • While loops
  • For loops
  • Exceptions
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.