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

HFSJ mock ques26 doubt

 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the question goes like this.. only small snippet i am giving..


my option is ... books.clear();
but they say ... books.add(null) or books.add("something").

Please some body tell me which is correct..
[ September 29, 2008: Message edited by: Sarat Koduri ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your option is a correct one
 
Arun Kumar Gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There seems to be some problem in the ans given.What the answer say they goes to c:when but in the Q it is asked what goes to c therwise.

Also look out for Q no. 30 ans

Where two <auth-constrain>student</auth-constraint/> and <auth-constraint/> is given and asked what if second <auth-constrait/> is removed

Then i think the ans is only student will be able to access the constraint resource but in the ans it is something else.

Are these Q's answers actually wrong?
 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you...

and arun.. i am sure about that 30th question and that answer they mention is correct one.. because.. if they remove the <auth-constrain/> element from the second <security-constraint> tag.. it will look to the continer like..

please allow .. for resource1 .. users belong to first role name union everybody.. so every body gets access.. initially i also got this answer wrongly...

hope i make it clear..
[ September 29, 2008: Message edited by: Sarat Koduri ]
 
Arun Kumar Gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you are right and i also understood it later after posting the reply.

Hope you and i dont make such mistakes in the real one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic