A

Admin • 828.03K Points
Coach

Q. Which method reference is commonly used to print each element of a collection?

  • (A) Class::print
  • (B) System.out::print
  • (C) System.out::println
  • (D) System::out

Explanation by: Admin
`System.out::println` prints each element when used in forEach or streams.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.