MCQOPTIONS
Saved Bookmarks
| 1. |
Which is the new method introduced in java 8 to iterate over a collection? |
| A. | for (String i : StringList) |
| B. | foreach (String i : StringList) |
| C. | StringList.forEach() |
| D. | List.for() |
| Answer» D. List.for() | |