Archive for the 310-091 Category

15
Oct

Pass4Side SUN 310-091 Updated 2008-10-7 Page 4

Sun Certified Bus. Component Developer Java EE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
16. A developer wants to create a Java Persistence query that returns valid U.S. phone numbers (formatted as “123-456-7890″ or “800-RUN-EJB3″) from a collection of differently formatted international phone numbers. The developer needs only those numbers that begin with 303. Which WHERE clause is correct?
A. […]

free blog themes
15
Oct

Pass4Side SUN 310-091 Updated 2008-10-7 Page 3

Sun Certified Bus. Component Developer Java EE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
11. 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 […]

free blog themes
15
Oct

Pass4Side SUN 310-091 Updated 2008-10-7 Page 2

Sun Certified Bus. Component Developer Java EE
pass4sideUpdated: 2008-10-7 
More Infomation Visit: http://www.pass4side.com
6. 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. […]

free blog themes
Free Blog Themes/Templates