Groovy Programming Tutorial

Groovy Tutorial

Groovy is an object oriented language which is based on Java platform. Groovy 1.0 was released in January 2, 2007 with Groovy 2.4 as the current major release. Groovy is distributed via the Apache License v 2.0. In this tutorial, we would explain all the fundamentals of Groovy and how to put it into practice.


This tutorial is going to be extremely useful for all those software professionals who would like to learn the basics of Groovy programming.


Before proceeding with this tutorial, you should have some hands-on experience of Java or any other object-oriented programming language. No Groovy experience is assumed.

Execute Groovy Online

For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your Groovy programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box:

class Example {
   static void main(String[] args) {
      // Using a simple println statement to print output to the console
      println('Hello World');