AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-898





Question ID 4592

Given the following entity classes:
@Entity
@cacheable (true) Public class A { . . . }
@Entity
@cacheable (false) Public class B { . . .}
@Entity
Public class C { . . . }
If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching?
 

Option A

A.    A only
 

Option B

B.    A and B
 

Option C

C.    A and C
 

Option D

D.    A, B, and C
 

Correct Answer A
Explanation


Question ID 4593

An application has three entities: the mapped superclass 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 - Parent1is a Parent entity with a primary key of 100 - Child1 is a child 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)
 

Option A

A.    Only person1 will be removed from cache.
 

Option B

B.    Person1, parent1, child1, and child2 will be removed from cache.
 

Option C

C.    Result is true
 

Option D

D.    Result is false
 

Correct Answer B,D
Explanation

Send email to admin@getfreedumps for new dumps request!!!