Online Access Free 1Z0-898 Practice Test

Exam Code:1Z0-898
Exam Name:Java EE 6 Java Persistence API Developer Certified Expert Exam
Certification Provider:Oracle
Free Question Number:63
Posted:Sep 07, 2025
Rating
100%

Question 1

Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?

Question 2

A developer wrote an entity class with the following method:
Private static Logger logger = Logger.getLogger ("myLogger");
@PrePersist @PreUpdate Public void doA () { Logger.info ("A"); } @PostPersist @PostUpdate Public void doB () { logger.info ("B"); }
What will the log message contain when an application does the following?
1.Begins a transaction
2.Creates the entity
3.Persists the entity
4.Commits the transaction
5.Begins the entity data
6.Modifies the entity data
7.Merges the entity
8.Commits the second transaction

Question 3

The developer wants to override the default mappings for an embeddable class Address used by the customer entity.
The Address class is defined as follows:
@Embeddable public class Address (
private String street;
private String city;
private String country;
. . .
)
Assume that NO mapping descriptor is present. Which code segment below shows the correct way to override the default mapping for address?

Question 4

A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)

Question 5

If an application uses an extended persistence context, which of the following is true?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.