• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help on mock question

 
Yi Meng
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?
 
Anselm Paulinus
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 ]
 
Philippe Maquet
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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic