Call : (+91) 99 8080 3767
Mail :


( Duration: 5 Days )

Groovy is a dynamic scripting and programming language for the Java platform. It combines the dynamic features of modern scripting languages such as Ruby and Python with familiar Java syntax. This Groovy training course will introduce you to the Groovy language. You will gain an understanding of how Groovy works and the Groovy language syntax.

By attending Groovy workshop, delegates will learn to:

  • Write applications using Groovy
  • Groovy operations within the Java Virtual Machine
  • Incorporate existing Java classes and libraries within Groovy applications
  • Add new methods and member variables to existing Java or Groovy classes
  • Role of closures within Groovy
  • Groovy's simplified object configuration syntax
  • Override operators for Groovy or Java classes
  • Concept of Metaprogramming and how to leverage it to simplify application development
  • Explore Groovy's Regular Expression syntax for easily managing String processing

  • Java developers with 2-3 years of working experience.

The Groovy class is ideal for:

  • Experienced developers who need to understand how and when to use Groovy in Java and J2EE applications



Groovy Fundamentals

  • Differences between Groovy and Java
  • Compiling and executing Groovy programs
  • The basic Groovy data types and optional typing
  • Writing Groovy scripts
  • Declaring classes
  • Overriding operators and type coercion
  • GDK: the Groovy library
  • Groovy strings
  • Regular expressions in Groovy

Groovy Collections

  • Ranges
  • Lists
  • Maps
  • Iterators and polymorphic algorithms

Closures in Groovy

  • Declaring closures
  • Available options for calling closures

Groovy Control Structures

  • The "Groovy truth"
  • Conditional execution
  • Looping constructs

Using Classes and Scripts

  • Groovy fields and local variables
  • Methods and operations
  • Safe dereferencing with the ?. operator
  • Organizing classes in packages
  • Using inheritance
  • POGO's vs. POJO's

Unit Testing in Groovy

  • GroovyTestCase
  • Unit-testing Groovy code
  • Unit-testing Java code
  • Code coverage and automation

Groovy Builders

  • NodeBuilder
  • MarkupBuilder
  • SwingBuilder

Survey of the GDK

  • Simplified File access
  • Templates
  • Groovlets

Database Access with Groovy

  • Basic database operations
  • DataSet operations
  • Groovy and ORM solutions

Working with XML

  • Reading and parsing XML documents
  • Using XPath expressions
  • Distributed processing with XML

Simple Metaprogramming

  • Metaclasses
  • Injecting methods with Categories
  • The Expando metaclass

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.