What are the changes to be made for the below code to print the string 12345?
Stream.iterate(1, x -> x++).limit(5).map(x -> x).collect(Collectors.joining());
A. Change Collectors.joining() to Collectors.joining("").
B. Change map(x -> x) to map(x -> "" + x) .
C. Change x -> x++ to x -> ++x.
D. Add forEach(System.out::print) after the call to collect().
Option B,C
Option A,C
Option A,B
Option B, D
To get all Infosys Certified Java SE8 Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee