Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFS Ch11 Q8 (p613)

 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q8 asks Which statements about <init-param> DD elements are true?

Option C says "The method that retrieves these parameters returns an object" yet is marked wrong.
What is java.lang.String if it is not an object?

Perhaps the answer should be reworded as:
"The method that retrieves these parameters is defined as returning java.lang.Object"?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel it is just the misleading of the term.

I guess what Kathy and Bert is asking is that: the type for init-param should be primitive or String only. Other object types are invalid.

Nick
 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given the wording, I thought they were testing if you knew the definition of:
public String getInitParameter(String name)
.
Perhaps, they'll enlighten us later...
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh man... that is just so WRONG!

Like String is not an object... :roll:

Anyway, yes it should have said Object with a capital "O", or better yet -- your suggestion Roger, "java.lang.Object".

This is a new one. Or rather, one that we didn't know about. Which brings up an interesting philosophical question... if an errata lies in the book and nobody spots it, is it still wrong?

I'm trying to think of a law of physics to support that. Maybe Heisenberg or something...

OK, I'm probably too tired to be answering questions that make sense, but I am still awake enough to know that this was just WROOOONG.

sorry about that...
glad you spotted it!

Thanks,
Kathy
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kathy.

I think sometimes that not too much people may discover errata because when we study the topic in the 1st time, we may not know there are problems.

However, when we study some more time, do more experiments, we may finally know.

Nick
 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duly submitted!

I'll be trying out the Mock Exam soon. Look out for more posts coming soon.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic