• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Sybex Practice Tests 11 - Possible error in Chapter 6, Question 47

 
Greenhorn
Posts: 2
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I found a possible errors in the book “OCP Java SE 11 Developer Practice tests” from Scott Selikoff and Jeanne Boyarsky.

In the Question 47 of the Chapter 6, the correct answer should be option D since the code does compile but generates an error when it is executed for trying to order an Infinite Stream.


Cheers
Jesus Alberto Sarco Giannini
 
Ranch Hand
Posts: 75
2
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

That's right, I receive also an exception at runtime:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

And therefore the answer should be D instead of C.

Thanks.

Greetings
Michael

 
author & internet detective
Posts: 42154
937
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
Agreed! I've added this to the errata and credited Jesus for being the first to report it. Have a cow.
 
reply
    Bookmark Topic Watch Topic
  • New Topic