• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

A mock question

 
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
 
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.
 
Cowgirl and Author
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
 
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.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic