• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in paramValues(EL)

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is got from http://nikojava.wordpress.com/2009/08/24/free-scwcd-mock-exam-for-el/


Consider this code.

What is the output when the form is submitted? (1 correct answer)

“Hello !!”
“Hello Bond !!”
None of the above.

here answer is C.

But i think it should be b . so what is the correct answer?

thanks,
geeta

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that paramValues is a Map whose values are String[].
This would print the result you are expecting:
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok then the answer is B.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic