Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sybex OCA Java 8 Study Guide: assessment test answer to question 17  RSS feed

 
Greenhorn
Posts: 24
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

Introduction, page XLII.

Autoboxing works for collections not inferring predicates.


Maybe "not" should be "of"?
The point is that lambda expression without declared types works with autoboxing, but it's ompile time error to explicitly declare primitive int instead of Integer, right?
 
author & internet detective
Marshal
Posts: 38366
645
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmed and added to the errata. Good eye!

And you are correct about the point we were trying to make; if one lists the type, it needs to match.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!