Question 1
Consider the code given below.
Which of the following is NOT true about the given code?
This program may generate ConcurrentModificationException.
It may generate output:

It may generate output:

It may generate output:

Consider the code given below.
Which of the following is NOT true about the given code?
This program may generate ConcurrentModificationException.
It may generate output:

It may generate output:

It may generate output:

Correct answer
This program may generate ConcurrentModificationException.
Question 1 of 23 in the IIT Madras BS Programming Concepts using Java (Java) End Term paper sat on 21 Dec 2025, in the September 2025 term (Programming Concepts Using Java 18 Dec 25). It carries 5 marks.