1Z0-860 Exam Questions
219 real 1Z0-860 exam questions with expert-verified answers and explanations. Page 2 of 5.
- Question #66
Which statement is true about the use of a persist operation in a transaction?
- Question #67
A developer is required to declare a persistent entity named Truck to map to a database table VEHICLE. Which entity class declaration is correct, assuming there is NO mapping descr...
- Question #68
Given: 5. public interface MrB1 { 6. public interface MrB2 { Ajava class is defined as: 11. ©Stateless 12. public class MrBean implements MrB1 ,MrB2 { Which two statements are corr...
- Question #69
Which two are true about specifying Java EE environment annotation metadata for session bean classes? (Choose two.)
- Question #70
A Reader entity has a one-to-many, bidirectional relationship with a Book entity. Two Reader entities are persisted, each having two Book entities associated with them. For example...
- Question #71
A developer wants to create a business interface for both local and remote usage. For performance reasons the remote interface should NOT be called by a client in the same JVM. Whi...
- Question #72
Session bean A is a client of session bean B. Bean A is using container-managed transactions and Bean A invokes a business method of bean B. Under which two circumstances does bean...
- Question #73
FooBean and BarBean are both EJB 3.0 stateless session beans with container-managed transaction demarcation. All business methods in the two beans have transaction attribute REQUIR...
- Question #74
A Java Persistence application uses the EntityManager.flush method to synchronize the current persistence context with the database. Which two statements are correct? (Choose two.)
- Question #75
Which component can use a container-managed entity manager with an extended persistence context?
- Question #76
A Java Persistence application uses entities mapped to tables from two datasources in the same transaction. What statement is correct?
- Question #77
A developer wants to create a Java Persistence query that restricts the results of an age-based query. Specifically, the developer wants to select everyone who is NOT a teenager. (...
- Question #78
A developer writes a stateless session bean FooBean and uses its deployment descriptor to declare a local ejb dependency on a stateful session bean in the same ejb-jar. <ejb-local-...
- Question #79
Which two statements are true? (Choose two.)
- Question #80
Which is the valid use of the javax.ejb.lnit annotation?
- Question #81
Given the following stateless session bean implementation classes: 10. @TransactionAttributefJransactionAttributeType. MANDATORY) 11. public class MySuperj 12. public void methodAf...
- Question #82
Which is a correct way of defining a runtime exception as an EJB 3.0 application exception?
- Question #83
Which two APIs must an EJB 3.0 container make available to enterprise beans at runtime? (Choose two.)
- Question #84
The Java Persistence API defines the Query interface. Which two statements about the Query.executeUpdate method are true? (Choose two.)
- Question #85
Which statement about an entity instance lifecycle is correct?
- Question #86
Which three statements are true about EJB 3.0 containers? (Choose three.)
- Question #87
A developer writes an enterprise application and packages it into an enterprise archive (EAR). The application contains one persistence unit with unit name "FooPU". The application...
- Question #88
Which method always throws an exception when invoked on a container-managed entity manager?
- Question #89
A developer writes a stateful session bean with local business interface Bar containing method test. Method test is implemented as 11. ©Remove 12. public void testfj {} A business...
- Question #90
A developer is implementing an EJB 3.0 JMS message-driven bean with bean-managed transactions. Which two statements are true? (Choose two.)
- Question #91
The ejb-jar file format is a contract between which two EJB role pairs? (Choose two.)
- Question #92
Given : 9. @Stateful 10. @TransactionManagement(TransactionManagementType. BEAN) 11. public class FacadeBean implements Facade { 12 @EJB Business business;lnesource SessionContext...
- Question #93
A developer maps the abstract entity class Account with concrete entity sub-classes Credit Card Account and Savings Account using the single table per class hierarchy strategy. Whi...
- Question #94
A developer has obtained a container-managed entity manager in a stateless session bean. Which two statements are correct? (Choose two.)
- Question #95
A Java EE 5 application contains a session bean which uses a security role USER. A group called people is defined in an LDAP server. Which two define appropriate EJB role responsib...
- Question #96
Which must result in the destruction of a stateful session bean?
- Question #97
A developer creates a stateless session bean, EmployeeServiceBean, and its interface, EmployeeSeivice. The session bean uses two annotated entity classes, Employee.class and Depart...
- Question #98
While executing a business method in a stateless session bean the container rolls back the method's transaction. Which three are possible causes for the container's behavior? (Choo...
- Question #99
A developer needs to include a set of managed classes in a persistence unit. Which two solutions are correct? (Choose two.)
- Question #100
Given a stateless session bean with container-managed transaction demarcation, from which two methods can a developer access another enterprise bean? (Choose two.
- Question #101
Which statement about the JoinTable annotation is true?
- Question #102
A developer is creating a long-running Java Persistence reporting application that accesses a set of related entities. The application is NOT expected to add, change, or remove rec...
- Question #103
A developer has obtained a container-managed entity manager with transaction scoped persistence context. Assume there is no persistence context associated with the entity manager....
- Question #104
Which statement is true about both stateful session beans and stateless session beans?
- Question #105
A developer implements a system in which transfers of goods are monitored. Each transfer needs a unique ID for tracking purposes. The unique ID is generated by an existing system w...
- Question #106
Which three roles will typically edit an ejb-jar? (Choose three.
- Question #107
A developer wants to create a portable EJB 3.0 application that includes the following class definition for the Entity Account: 11.〦ntity 12. @Entityl_isteners(com. acme.AlertMonit...
- Question #108
A developer is working with an entity User, which has an identity field and a salary field. Which Java Persistence query will return those users with the highest salaries?
- Question #110
A developer wants to create a JMS message-driven bean that responds to javax.jms.TextMessage messages. Which two statements are true? (Choose two.)
- Question #111
An application wants to utilize side-effects of cascading entity-manager operations to related entities. Which statement is correct?
- Question #113
A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. T...
- Question #114
The Java Persistence API defines a notion of propagation of a persistence context. Which statement is correct?
- Question #115
Which two statements are correct? (Choose two.)
- Question #116
Given : public class MyException extends Exception {} The business interface Foo declares a method work0:
- Question #118
A Java EE 5 Application server has four different security realms for user management. One of the security realms is custom made. This realm supports only individual user entries,...