Though for each loop is preferred more, there exist some disadvantages of using the for-each loop.
- Unlike for loop, we can access elements of arrays or collections in reverse order while using for each loop.
- We cannot get information about the index number of the elements in the for-each loop.
- We cannot change the elements of arrays or collections using for-each loop.