• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

AssessmentTest.Question14(oca, javase8, Programmer1);

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

On the assessment test on page xlii (question 14) the correct answers are not including the option C. But replacing blank line with


the application will compile but not produce any output. So option C should be correct to.
Thank you!
 
Ranch Hand
Posts: 47
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which assessment Test do you mean? The one from OCA Study Giude from  Jeanne Boyarski and Scott Selikoff?
 
Saloon Keeper
Posts: 3416
149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, page 36 (xxxvi), assignment 14.

Yuri is right(ish), in that there is no output. But the assignment assumes we have a valid non-null HenHouse object. And the question is whether Yuri's HenHouse is such a valid HenHouse...
 
Yuri Savchenko
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is disputable issue. But on a real exam I would probably assume it is a valid HenHouse and lose some valuable points.
 
Ranch Hand
Posts: 99
15
Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The purpose of the book is to prepare you for the exam. This question is about using a List implementation. The question makes it clear, that the real implementation of a HenHouse object doesn't matter. What matters are four possible return values of the method getChickens: empty list, null, a list with one element and a list with multiple elements. If you use System.exit, you will not have any return value at all. Even Oracle doesn't make such traps, thanks god! So don't think to much. Everything is gonna be ok!
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yuri Savchenko wrote:It is disputable issue. But on a real exam I would probably assume it is a valid HenHouse and lose some valuable points.


The real exam will mention how many correct answers you must select, so you should be capable to pick the best fitting answer(s) when needed.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!