• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Errata in flash study cards for OCP Programmer II

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Errata in flash study cards of OCP Programmer II

In the flash cards provided in Willey Efficient Learning for the book "OCP, Oracle Certified Professional Java SE 11 Programmer II Study Guide Exam 1Z0-816 and 1Z0-817" this happened in the Question Bank provided in http://app.efficientlearning.com/pv5/v8/5/app/ocp/javase11prgiisg.html?#flashcardBuilder there is an error in the answer of one flash card study card.

The question made in the study card is:
Which functional interface takes zero parameters and has a get() method?

The given answer was Consumer<T>.


This answer is not right:
Correct answer should be: Supplier<T>instead of Consumer<T>

FlashCard.jpg
Front card
Front card
FlashCard_Back.jpg
Back card
Back card
 
Marshal
Posts: 80447
451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please supply more details about the source. I can't read those screenshots, but the question isn't clear. I think it means,

Which of the following functional interfaces has a get() method taking no parameters?

As you said, Supplier fits that description.
 
Campbell Ritchie
Marshal
Posts: 80447
451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pease don't edit old posts, but I shall let it stand this time. The link failed to open, but the question is unclear, as I said, and the answer should be Producer. You are correct.
 
author & internet detective
Posts: 42109
934
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct. I've added this to the errata. Thank you for posting.
reply
    Bookmark Topic Watch Topic
  • New Topic