R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to skip the first N elements of a stream?

  • (A) drop()
  • (B) skip()
  • (C) limit()
  • (D) slice()
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`skip(n)` returns a stream that discards the first n elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.