Which two statements, independently, would allow this code to compile?

Assuming the Widget class has a getPrice method, this code does not compile:

Which two statements, independently, would allow this code to compile? (Choose two.)
A . Replace line 5 with widgetStream.filter(a − > ((Widget)a).getPrice() > 20.00).
B . Replace line 1 with List<Widget> widgetStream = widgets.stream();.
C . Replace line 5 with widgetStream.filter((Widget a) − > a.getPrice() > 20.00).
D . Replace line 4 with Stream<Widget> widgetStream = widgets.stream();.

Answer: AD

Latest 1Z0-816 Dumps Valid Version with 80 Q&As

Latest And Valid Q&A | 90 Days Free Update | Once Fail, Full Refund

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  • Sign up
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.