• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a mock question

 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Identify all correct requirements for a CMP entity bean class? [Check all correct answers]


1 The class must be defined as public.
2 The class must define a public constructor that takes no arguments.
3 The class must not be defined as abstract.
4 The class must define the finalize() method.
5 The class must implement, directly or indirectly, the javax.ejb.EntityBean interface.

the anwser is 1,2,5
I don't know why 3 is wrong,because must implement the get and set accessor methods of the bean's abstract persistence schema as abstract methods
 
Kay Ra
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3 says "MUST NOT be " defined abstract so it is wrong
If it says must be abstract then you can pick it

kay
SCWCBD
SCBCD
 
bhilla ratna
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
CMT managed entity beans must be declared as public and abstract. So answer 3 is wrong.

bhilla
 
bhilla ratna
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I mean CMP bean.

bhilla
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic