1Z0-860 Exam Questions
219 real 1Z0-860 exam questions with expert-verified answers and explanations. Page 5 of 5.
- Question #277
Which example of Java Persistence identity definitions is portable and correct assuming NO mapping descriptor is present?
- Question #278
A developer writes a stateless session bean with a constructor, a PostConstruct method, a PreDestroy method, and this business method: 11. public String helloQj 12. return "hello";...
- Question #279
Which is a valid PostConstruct method in a message-driven bean class?
- Question #280
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 #285
A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Top...
- Question #286
The bean class of an EJB Web service endpoint has one method annotated with @WebMethod. Which two types can be legally returned from that method? (Choose two.)
- Question #288
Bean A is using bean-managed transaction demarcation and has invoked the foo method of bean
- Question #289
The execution of the find method in the following code throws an exception: 11. em.find(Customer.class, custld); 12. //Where em is a reference to a extended scoped entity manager....
- Question #291
Given the following code snippet from an EJB 3.0 entity class: 1. package com.foo; 2. // more code here... 10.〦ntity 11. @Table(name="A") 12. public class Order { And the following...
- Question #292
Which two annotations can be applied at the class, method, and field levels? (Choose two.
- Question #293
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 #294
Given an EJB 3.0 J MS message-driven bean, which statement is true about its exception handling?
- Question #295
A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business logic has been implemented and tested in these EJB 2.1 session beans. So...
- Question #297
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...
- Question #298
A developer obtains a Java, security. Principal object by calling the SessionContext.getCallerPrincipal method from within a business method of a session bean. Which statement is t...
- Question #300
A developer is modifying an existing Java EE application that uses the JDBC API to access a database. This code must be used but cannot be changed, and new code needs to be added t...
- Question #301
Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?
- Question #303
A developer is implementing a message-listener method of an EJB 3.0 message-driven bean. The developer wants to make sure that the message receipt is immediately rolled back in cas...
- Question #305
The syntax of the ORDER BY clause is defined in the Java Persistence API as orderby_clause ::=ORDER BY orderbyjtem {, orderbyjtem}* Which statement is correct about the use of ORDE...