Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on EL Expression

 
rachna jain
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

This question no 15 on page 427 HFJ 2nd edition

How F is incorrect and E is correct.

please clarify.



Also q 17 page 428 option C should also be correct while answer shows is only A

another doubt is on question 19 on page 429 please explain that also.




Thanks

 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rachna. In ${mybean["objects"].a}, the part ${mybean["objects"]} returns an object of type 'List'. We can get list elements through index. Here 'a' is not valid index, that caused an error.
 
rachna jain
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chinmaya

Thanks for explanation
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!