Webcam Chat QuickBooks Advice international calling cards international phone cards
JavaBeat Java Books Certifications Certifications Kits Articles Tutorials Tips QNA Book Store Interview Questions SCJP 1.5 SCJP 1.6 SCWCD 5.0 SCBCD 5.0 SCEA SCJA Feeds
300 Mock Questions on SCBCD 5.0 - JUST Rs.350 or 12 USD
Send us mail to sales@javabeat.net
more details
Do you have paypal account? Click Here to pay now and get the questions.

SCBCD 5.0 Mock Wxam Questions - 3

by JavaBeat(05/12/2007)

1)A stateless session bean must commit a transaction before a business method.

a)True
b)False

2)A message-driven bean must commit a transaction before a business method.

a)True
b)False

3)A stateful session bean must commit a transaction before a business method.

a)True
b)False

4)By default, What is the value of the transaction atrribute for a method of a bean with CMT?

a)NotSupported
b)Required
c)RequiresNew
d)Supports

5)Which of the following statements are valid?

a)If a TransactionAttribute annotation is not specified for a method of a bean with CMT, the value of the transaction attribute for the method is defined as 'Not Required'

b)Bean Provider may use either annotations or deployment descriptor to specify the transaction attributes, cannot use the both at same time.

c)Bean Provider can use annotations and deployment descriptor to specify the transaction attributes. If he uses both deployment descriptor will override the annotations.

d)If the transaction attribute is not specified in deployment descriptor and annotations, then the value is 'Required'

6)Who is allowed to override the transaction attribute in the deployment descriptor?

a)Bean Provider
b)Application Assembler
c)Deployer
d)System Administrator

7)Which of the following TransactionAttribute values can be be use for MDB's message listener methods?

a)REQUIRED
b)MANDATORY
c)NOT_SUPPORTED
d)REQUIRES_NEW

8)Which of the following TransactionAttribute values can be be used for enterprise bean's timeout call back methods?

a)MANDATORY
b)REQUIRES
c)REQUIRES_NEW
d)NOT_SUPPORTE

9)Which of the following TransactionAttribute values can be be used for enterprise bean when it implements javax.ejb.SessionSynchronization?

a)REQUIRED
b)MANDATORY
c)SUPPORTS
d)REQUIRES_NEW
e)NOT_SUPPORTED
f)NEVER

10)Which of the following statements are correct.

a)TransactionAttribute annotation is used to specify a transaction attribute.
b)The value of the TransactionAttribute annotation is given by the enum TransactionAttributeEnum.
c)Transaction attributes of the methods can be specified in the class, the business methods of the class, or both.
d)Transaction attribute may be specified on the method of the bean class to override the transaction attribute value specified in a class.

Answers


JavaBeat Website (2004-2011), India
javabeat | advertise | about us | contact | useful resources
Copyright (2004 - 2011), JavaBeat


Technology Blogs
Technology blogs Technology Blogs
blog log