• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Problem with HF Mock Test question

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I'm taking the test tomorrow (yikes!) and I'm having a problem with a mock question from the HF book:

4. Which method(s) can be run by a CMP bean in a pooled state?

A. ejbLoad()
B. ejbFind()
C. ejbStore()
D. ejbCreate()
F. ejbHome()

I answered only B, but F is considered correct also. I didn't feel that F was a possible method name, as it is a prefix for home business methods, and that would mean the home business method would have no name. I must be missing something. Anybody know where I went wrong?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you choose B, then do you really think the find method has a name find?
My understanding here is that the ejbFind(), ejbHome() actually stands for ejbFindXXX() and ejbHomeXXX().
 
Tonio Morelli
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But find is a real, possible method name in the Home interface, isn't it? And the other methods in the list are also real existing methods. They don't stand for any kind of pattern, so who would believe that they're really saying that?

OK, my point isn't to bash the mock exam makers. I just wanted to make sure I wasn't missing anything obvious in my knowledge - the mock exams always have errors of various degrees. But if anyone knows why I'm definitely wrong about this, please pipe up - I'm all ears!
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic