O'Reilly logo

Groovy and Grails Recipes by Bashar Abdul-Jawad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2From Java to Groovy

If you are reading this book, you probably have some experience working with Java. As I explained in the introduction, this book assumes an intermediate-level knowledge of Java. This is because I have noticed that most people learning Groovy have some Java background, and—impatient with the shortcomings and limitations of Java—have decided to give Groovy a try. They couldn't be more right!

This chapter focuses mainly on explaining the similarities and differences between Java and Groovy and how to integrate Groovy with Java. Thanks to the similarity between Groovy's syntax and Java's, the transition from Java to Groovy is a smooth one with an almost flat learning curve. As a matter of fact, Java developers can learn ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required