f
examsoon@hotmail.com
Exam Number/Code: 310-091
Exam Name: Sun Certified Bus.Component Developer Java EE Platform 5
Language(s): English
Price: $ 58.00
Questons and Answers : 305 Q&As
Updated: 2010-08-06
Buy it please click 310-091
It is well known that SCBCD 310-091 - 310-091 exam test is the hot exam of SUN certification. pass4onside offer you all the Q&A of the 310-091 real test . It is the examination of the perfect combination and it will help you pass 310-091 exam at the first time!
The SCBCD 310-091 Questions and Answers as well as our other SCBCD 310-091 exam training tools are not only priced to be easy on your budget - but each one is also backed with our guarantee. pass4onside guarantees that after using our Cisco certification training tools, you will be prepared to take and pass your SCBCD 310-091 exam.
Exam : SUN 310-091
Title : Sun Certified Bus. Component Developer Java EE Platform 5
1. Which is a valid PostConstruct method in a message-driven bean class?
A. @PostConstruct
public boolean init() { return true; }
B. @PostConstruct
private static void init() {}
C. @PostConstruct
private void init() {}
D. @PostConstruct
public static void init() {}
Answer: C
2. Which statement about an entity instance lifecycle is correct?
A. A new entity instance is an instance with a fully populated state.
B. A detached entity instance is an instance with no persistent identity.
C. A removed entity instance is NOT associated with a persistence context.
D. A managed entity instance is the instance associated with a persistence context.
Answer: D
3. A developer is working on a user registration application using EJB 0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?
A. Have registerUser method call EJBContext.setRollbackOnly() method after registration fails.
B. Have registerUser method throw javax.ejb.EJBTransactionRequiredException after registration fails.
C. Have registerUser method throw EJBException without marking the transaction for rollback, after registration fails.
D. Create an application exception with the rollback attribute set to false and have registerUser method throw it after registration fails.
Answer: D
4. Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?
A. All mapping annotations must always be processed by the persistence provider.
B. Some annotations, like the @Entity annotation, must always be processed by the persistence provider.
C. The mapping information for an entity class specified by annotations and in XML descriptors must be distinct.
D. If multiple entity listeners are defined, the order in which they are invoked can be defined or overwritten in the XML descriptor.
Answer: D
5. Which two class types must be implicitly or explicitly denoted in the persistence.xml descriptor as managed persistence classes to be included within a persistence unit? (Choose two.)
A. Entity classes
B. Interceptor classes
C. Embedded classes
D. Entity listener classes
Answer: AC
6. Given:
11. @Entity public class X {
12. @Id int id;
13. Y y;
14. }
A public class Y with NO Java Persistence annotations is defined in the same package.
Which statement is correct about these classes if NO other annotations and mapping descriptors are provided?
A. Class Y must be serializable.
B. Class Y must be marked as an entity.
C. The entity X is not defined correctly.The field y must be marked as @Lob.
D. Class Y must be accessed by a persistence application through a public interface.
Answer: A
Our on-site online training experts create all of the SUN 310-091 exam products available through pass4onside. Our main goal is to get your certified with a firm understanding of the core material. Whereas other online distributors only concern themselves with helping you obtain the paper, we strive to educate the certification candidate and better prepare them for their IT career.
Why choose pass4onside 310-091 braindumps
Quality and Value for the 310-091 Exam
100% Guarantee to Pass Your 310-091 Exam
Downloadable, Interactive 310-091 Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.