Question: ` ` ` for ( var penguin : new int [ 2 ] ) System.out.println ( penguin ) ; var ostrich = new Character [

```
for(var penguin : new int[2])
System.out.println(penguin);
var ostrich = new Character[3];
for(var emu : ostrich)
System.out.println(emu);
List parrots = new ArrayList();
for(var macaw : parrots)
System.out.println(macaw);
```
Each correct answer represents a complete solution. Choose all that apply.
A \(\square \quad \) The data type of emu is Character.
B \(\quad \) The data type of emu is undefined.
C \(\square \quad \) The data type of penguin is int.
D \(\square \quad \) The data type of penguin is Integer.
E \(\square \quad \) None of these, as the code does not compile.
F \(\square \quad \) The data type of macaw is Integer.
G \(\square \quad \) The data type of macaw is List.
` ` ` for ( var penguin : new int [ 2 ] )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!