Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. The Groovy essentials > Time-saving features

2.3. Time-saving features

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.

2.3.1. Who needs semicolons?

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.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint