• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 79039
375
  • 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: 79039
375
  • 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: 41855
904
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic