Which of the following types is objects not allowed to be in order for this code to compile?
for (Object obj : objects) {
}
C.
A for-each loop is allowed to be used with arrays and ArrayList objects.
StringBuilder is not an allowed type for this loop, so Option C is the answer.