Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

need help on mock question

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CQ1. Which of the following statements about business methods in a bean class is incorrect [choose 1]:
A. The signature requirements for business methods are always the same for both session and entity beans.
B. The argument and return types must always be legal types for the Java RMI API.
C. The throws clause may include any exceptions defined by your application.
D. A business method should always throw the javax.ejb.EJBException to indicate a system-level problem.
The answer given is B, but i think A should also be one of the answers coz business method names in entity bean home interface do have different requirements. They cannot start with ejb, find, create whereas for all business method in component interface are only required not to start with ejb. right?
 
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
B. is wrong because the arguements and return types should be legal types of java RMI-IIOP; so the only correct answer is A.
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Anselm Paulinus:
B. is wrong because the arguements and return types should be legal types of java RMI-IIOP; so the only correct answer is A.


hihi, it's selecting INCORRECT answers....B is wrong, but i mean A is also wrong.....
[ December 24, 2003: Message edited by: Yi Meng ]
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yi,

but i think A should also be one of the answers coz business method names in entity bean home interface do have different requirements.


The Home declares "home business methods", which are not included in the question scope IMO.
Regards,
Phil.
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Philippe Maquet:
Hi Yi,

The Home declares "home business methods", which are not included in the question scope IMO.
Regards,
Phil.


Then here comes the question that what are "business methods" in genral in a question......
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yi,
"business methods" are the ones you declare in your component interface.
Now I agree with you that the question is ambiguous. I just tried to justify *why* the correct answer is the one it is. But be reassured : real questions on the real SCBCD exam are *not* ambiguous (or far less ), and don't play with the words like this.
Best,
Phil.
[ December 25, 2003: Message edited by: Philippe Maquet ]
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
i should not have cared all this, but you know how i felt at the time when i did my first 4 mock questions and got 2 of them wrong....
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic