Sorry sid. Could you please post the question ? That would give people who don't own the book (like me) a chance to help you.
Dave Seligson
Greenhorn
Joined: Jul 12, 2007
Posts: 17
posted
0
Q17 on page 424 has an errata that says answer C should not be checked. Answers A is correct and should be checked.
The question is: Which about EL access operators are true? (Choose all that apply) A. Anywhere the .(dot) operator is used the [] could be used instead. B. Anywhere the [] operator is used the .(dot) could be used instead. C. If the .(dot) operator is used to access a bean property but the property doesn't exist, then a runtime exception is thrown. D. There are some situations where the .(dot) operator must be used and other situations where the [] operator must be used.
Answer A is the only correct answer.
In my copy, A is correctly checked and there are descriptions why B and D are incorrect. However, there is no description why C is incorrect. I believe the description should be that Expression Language is very forgiving and doesn't throw exceptions in this case.
Dave Seligson SCJP, SCWCD test pending on this Friday.....
sid sree
Ranch Hand
Joined: Jun 28, 2007
Posts: 186
posted
0
Hi
Please dont be sorry chris ... i know that everything said here is in good humour & taste ... i was just being sarcastic !!
Thanks for the answer !!! .... & i guess EL is very forgiving !!! .... hopefully it remains like that in the exam as well !! [ September 14, 2007: Message edited by: sid sree ]