Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 74778
336
  • 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: 74778
336
  • 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: 40912
840
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