concept optional typing in category groovy

This is an excerpt from Manning's book Groovy in Action, Second Edition.
The next rung where candidates slip off is overloaded methods. Imagine you set out to implement the Java interface java.io.Writer in any non-Java language. It comes with three versions of write that take one parameter: write(int c), write(String str), and write(char[] buf). Implementing this in Groovy is trivial—it’s exactly like in Java. The formal parameter types distinguish which methods you override. That’s one of many merits of optional typing. Languages that are solely dynamically typed have no way of doing this.
Groovy offers the choice of explicitly specifying variable types just as you do in Java. Table 3.3 gives examples of optional type declarations. It’s tricky—anything talking about a “type declaration” makes us think it’s a type being declared, not a variable. What we’re really talking about is “variable declarations using optional typing,” but that’s a mouthful. We’re normally an absolute stickler for getting terminology right, but if you’d like to fudge this slightly for the sake of more readable text, that’s fine.