I have a doubt regarding one of the mock questions in HFSJ(page 432. question 17).
Which abt EL access operators are true?
A. anywhere the . (dot) operator is used, the [] could be used instead. D. There are some situations where the . (dot) operator must be used and other situations where the [] operator must be used.
In which the answer given is only A. I think the answer D is also correct. The reason is: 1) We can't use ${musicList.1} instead of ${musicList["1"] 2) we can't use ${initParam.master-email} instead of ${initParam['master-email']}
Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / AmazonAmazon UK )
Thanks for ur reply. I searched in these links. Also, I searched in this forum. They are all discussing only abt option C. But, I couldn't find why the option D is wrong. Can anyone please clarify this.
I have a doubt regarding one of the mock questions in HFSJ(page 432. question 17).
Which abt EL access operators are true?
A. anywhere the . (dot) operator is used, the [] could be used instead. D. There are some situations where the . (dot) operator must be used and other situations where the [] operator must be used.
In which the answer given is only A. I think the answer D is also correct. The reason is: 1) We can't use ${musicList.1} instead of ${musicList["1"] 2) we can't use ${initParam.master-email} instead of ${initParam['master-email']}
Can anyone please clarify this?
Thanks and Regards Swapna
I think 'D' is also correct answer.
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda