Wednesday, 7 August 2013

final static object in Groovy

final static object in Groovy

Is there a difference? What is the preferred or correct usage in groovy.
If my variable is final and static should I be using def ?
final static def MY_STRING
or
final static String MY_STRING

No comments:

Post a Comment