Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Before we move on to the most significant features of Groovy, let’s take a look at some of the quiet helpers. We start with the seemingly innocuous semicolons at the end of statements.
One of the most obvious differences between Java and Groovy is that the latter doesn’t require semicolons at the end of lines, or, to put it more accurately, at the end of statements. If you want to put more than one statement on a single line in Groovy, you must still separate them with semicolons, as in Java.