SUN test 310-091 exam dumps Exam 310-091 Sun Certified Bus.Component Developer Java EE Platform 5 310-091 Testing Engine - Test4pass

310-091 Exam

Sun Certified Bus.Component Developer Java EE Platform 5

  • Exam Number/Code : 310-091
  • Exam Name : Sun Certified Bus.Component Developer Java EE Platform 5
  • Questions and Answers : 305 Q&As
  • Update Time: 2011-09-21
  • Price: $ 119.00 $ 69.00

Free 310-091 Demo Download

Test4pass offers free demo for SCBCD 310-091 exam (Sun Certified Bus.Component Developer Java EE Platform 5). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.


 

Exam Description

It is well known that 310-091 exam test is the hot exam of SUN certification. Test4pass 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!

Why choose Test4pass 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.

SUN SCBCD 310-091 exam braindumps questions and answers

¡¡
¡¡
Exam : SUN 310-091
Title : Sun Certified Bus. Component Developer Java EE Platform 5


1. 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

2. The deployment descriptor for a stateless session bean that uses the isCallerInRole method reads as follows:
3. <security-role-ref>
4. <role-name>manager</role-name>
5. <role-link>humanresources</role-link>
6. <security-role-ref>
16. <security-role>
17. <description>
18. Is allowed to view and update all employee records.
19. </description>
20. <role-name>humanresources</role-name>
21. </security-role>
Which two roles are responsible for creating this deployment descriptor? (Choose two.)
A. Deployer
B. Bean Provider
C. System Administrator
D. Application Assembler
Answer: BD

3. 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

4. Collection projects;
13. // more code here
14. }
and
11. @Entity public class Project{
12. Set<Employee> emps;
13. // more code here
14. }
What set of annotations correctly defines the association?
A. @ManyToMany on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
B. @ManyToMany(mappedBy="emps") on the projects field,
¡¡@ManyToMany on the emps field
C. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
D. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany on the emps field
Answer: C

5. A developer wants to create a portable EJB 3.0 application that includes the following class definition for the Entity Account:
11. @Entity
12. @EntityListeners(com.acme.AlertMonitor.class)
13. public class Account {
14. // more code here
15. @PrePersist
16. protected void validateCreate() {/* more code here */}
17. }
Which statement is correct?
A. The validateCreate method may NOT throw runtime exceptions.
B. The validateCreate method can invoke the EntityManager.flush operation.
C. Methods of the class com.acme.AlertMonitor annotated with callback annotations must take an Object or Account instance as the only argument.
D. The above class definition is NOT correct. An entity cannot define a callback method like PrePersist and use the EntityListeners annotation at the same time.
Answer: C

6. }
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

7. Given two entities with a many-to-many bidirectional association between them:
11. @Entity public class Employee {
12. Collection projects;
13. // more code here
14. }
and
11. @Entity public class Project{
12. Set<Employee> emps;
13. // more code here
14. }
What set of annotations correctly defines the association?
A. @ManyToMany on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
B. @ManyToMany(mappedBy="emps") on the projects field,
¡¡@ManyToMany on the emps field
C. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
D. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany on the emps field
Answer: C

8. A developer implements a session bean with a method doStuff which behaves differently depending on the caller's security role. Only users in security roles "ADMIN" and "USER" are allowed to call the method. Assume that there is no security-related metadata in the deployment descriptor. Which two, taken in combination, are appropriate to accomplish this? (Choose two.)
A. Annotate method doStuff with @PermitAll.
B. Annotate method doStuff with @RolesAllowed({"ADMIN","USER"})
C. If EJBContext.getCallerPrincipal returns role "ADMIN", implement the behavior for users in role ADMIN.
D. If EJBContext.isCallerInRole("ADMIN") returns true, implement the behavior defined for users in role "ADMIN".
Answer: BD

9. 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

10. // more code here
14. }
and
11. @Entity public class Project{
12. Set<Employee> emps;
13. // more code here
14. }
What set of annotations correctly defines the association?
A. @ManyToMany on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
B. @ManyToMany(mappedBy="emps") on the projects field,
¡¡@ManyToMany on the emps field
C. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany(mappedBy="projects") on the emps field
D. @ManyToMany(targetEntity=Project.class) on the projects field,
¡¡@ManyToMany on the emps field
Answer: C

11. 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

12. 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

13. 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

14. Given:
11. @PersistenceContext EntityManager em;
12. public boolean test(Order o) {
13. boolean b = false;
14. o = em.merge(o);
15 em.remove(o);
16. o = em.merge(o);
17. b = em.contains(o);
18. return b;
19. }
Which statement is correct?
A. The method will return TRUE.
B. The method will return FALSE.
C. The method will throw an exception.
D. The Order instance will be removed from the database.
Answer: C


Click Online chat to talk with us , get more informations about SUN SCBCD 310-091 practice exam study guides questions and answers

Test4pass 310-091 Exam Features

Quality and Value for the 310-091 Exam

Test4pass Practice Exams for SUN 310-091 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.

100% Guarantee to Pass Your 310-091 Exam

If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the SCBCD 310-091 exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.

SUN 310-091 Downloadable, Printable Exams (in PDF format)

Our Exam 310-091 Preparation Material provides you everything you will need to take your 310-091 Exam. The 310-091 Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.

310-091 Downloadable, Interactive Testing engines

We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our SUN 310-091 Exam will provide you with free 310-091 dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 310-091 Exam:100% Guarantee to Pass Your SCBCD exam and get your SCBCD Certification.

Test4pass 310-091 exam
Test4pass 310-091 pdf exam
Test4pass 310-091 braindumps
Test4pass 310-091 study guides
Test4pass 310-091 trainning materials
Test4pass 310-091 simulations
Test4pass 310-091 testing engine
Test4pass 310-091 vce
Test4pass 310-091 torrent
Test4pass 310-091 dumps
free download 310-091
Test4pass 310-091 practice exam
Test4pass 310-091 preparation files
Test4pass 310-091 questions
Test4pass 310-091 answers

http://www.test4pass.com/310-091-exam.html The safer.easier way to get SCBCD Certification SUN Other Certifications Certification .


Guarantee | Buying Process | F.A.Q. | Payment | Refundment Term | Semples | Testing Engine | privacy | Contact | Sitemap 1 2 3 4

Copyright©2006-2009 sale test4pass Limited. All Rights Reserved

sale test4pass materials do not contain actual questions and answers from Microsoft's Cisco's Certification Exams.