• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Errata in flash study cards for OCP Programmer II

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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: 71627
312
  • Mark post as helpful
  • send pies
  • 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: 71627
312
  • Mark post as helpful
  • send pies
  • 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: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. I've added this to the errata. Thank you for posting.
 
A tiny monkey bit me and I got tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic