Oracle
1Z0-898 · Question #16
1Z0-898 Question #16: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-898 to reveal the answer and full explanation for question #16. The question stem and answer options stay visible for context.
Question
An application has three entities: the mapped super class person class entity, and the parent and child entities, which are subclasses of person. The application has created four entity Instances: Person1 is a Person entity with a primary key of 50 Parent1 is a Parent entity with a primary key of 100 Child1 is a chi id entity with a primary key of 400 Child2 is a child entity with a primary key of 600 Caching has been enabled in the persistence unit, the persistence provider supports caching, and none of entities have the Cacheable annotation applied, or a cacheable XML element in persistence.xml. The application executes the following code: Cache cache = . . . ; Cache.evict(person.class) Boolean result = cache.contains (Child.class, 400); Assume there is no concurrent activity involving the cache. Which two statements are correct? (Choose two)
Options
- AOnly person1 will be removed from cache.
- BPerson1, parent1, child1, and child2 will be removed from cache.
- CResult is true
- DResult is false
Unlock 1Z0-898 to see the answer
You've previewed enough free 1Z0-898 questions. Unlock 1Z0-898 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.