Choose the correct option based on this code segment:.
IntStream.rangeClosed(1, 1).forEach(System.out::println);
A.
the rangeClosed(startValue, endValueInclusiveOfEnd) method generates a sequence of integers starting with startValue till (and inclusive of) endValueInclusiveOfEnd.
hence the call IntStream.rangeClosed(1, 1) results in a stream with only one element and the foreach() method prints that value.