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

A mock question

 
Vipin Mohan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
This is a mock question from one of IBM's sample tests. Since the question does not mention whether the home interface is remote or local, is it possible to answer this ? In case of remote home, A would be the answer and in the case of local home, B would be the answer. Am I right ?
Question 36. (1 Ans.)
A Home interface for an EJB supplies a finder that returns a java.util.Collection. What MUST the client code do with elements of the collection to work with each EJB reference?
A. Each reference needs to be type narrowed.
B. Each reference needs to be cast to the corresponding local interface.
C. Each reference needs to be cast to the corresponding remote interface.
D. Each element is a EJB Handle from which the EJB reference can be obtained.
Thanks in advance
Vipin
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vipin,
You're right. But reading the question, and without any further precision, I guess the interface they mention is the remote home. So A is what they expect IMO.
Best,
Phil.
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy -- this is just not a valid question, in my opinion, because it doesn't say if it is remote or local, and that certainly makes a difference. If I was forced to figure out what they wanted, I'd agree with Phillipe, but the question is just not reasonable... (of course, who am I to talk thanks to Phillipe especially, we've found one of *our* questions that doesn't work either)
You won't have this on the real exam
Everything has been heavily tested, and the ambiguous questions have all been thrown out.
cheers,
Kathy
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which exam is that?
By the way anybody know any good book to prepare for IBM Solution Developer? I haven't found any book for that and attending courses it's hmm it's a lot of money.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic