Considere os seguintes comandos da linguagem Groovy para criar um array chamado <code>tribunais</code>:
<pre> I. String[] tribunais = ["TRT", "TRE", "TCU"] II. def tribunais = ["TRT", "TRE", "TCU"] as String[] III. def tribunais = (String[]) ["TRT", "TRE", "TCU"] IV. def tribunais = ["TRT", "TRE", "TCU"] .toString(new Array())</pre>Estão corretas as formas utilizadas APENAS em
<pre> I. String[] tribunais = ["TRT", "TRE", "TCU"] II. def tribunais = ["TRT", "TRE", "TCU"] as String[] III. def tribunais = (String[]) ["TRT", "TRE", "TCU"] IV. def tribunais = ["TRT", "TRE", "TCU"] .toString(new Array())</pre>Estão corretas as formas utilizadas APENAS em
- A)I, II e III.
- B)II e IV.
- C)I e III.
- D)II, III e IV.
- E)I e IV.