R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `IntStream.range(1, 4)` produce?

  • (A) [1, 2, 3, 4]
  • (B) [1, 2, 3]
  • (C) [2, 3, 4]
  • (D) [1, 2]
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`IntStream.range(1, 4)` produces 1 (inclusive) to 4 (exclusive): [1, 2, 3].

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.