1

In Groovy, it appears that the following declarations are both legal

private final results = []
private final def results = []

Is there any difference between these two?

Thanks, Don

Dónal
  • 185,044
  • 174
  • 569
  • 824

1 Answers1

3

See this question: Groovy: what’s the purpose of “def” in “def x = 0” ?

Community
  • 1
  • 1
Leonel
  • 28,541
  • 26
  • 76
  • 103