aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes mock exam question on mapping collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "mock exam question on mapping collections" Watch "mock exam question on mapping collections" New topic
Author

mock exam question on mapping collections

subba rao
Greenhorn

Joined: Apr 24, 2008
Posts: 24
A developer wants to model the grades for a student as a Map<course, integer>. Assume that
Student and Course are entitles, and that grades are modelled by integers. Which of the following
two statements are correct? (Choose two)
A. The developer can model the grades as an element collection in the Student entity.
B. The developer can model the grades as a one To Many relationship in the Student entity.
C. The mapping for the key of the map can be specified by the @MapKeycolumn annotation.
D. The mapping for the value of the map can be specified by the @Column annotation

In my view answer should be A,D;but actual answer was A,C

An application that uses container-managed transaction demarcation creates a query within an
active transaction and receives a QueryTimeoutException. Which of those scenarios describes what
happens to the active transaction?

A. The statement and the transaction continue.
B. The query is recreated within the current transaction.
C. The statement and the transaction are marked for rollback.
D. The statement is rolled back, but the transaction continues.

In my view answer should be D;but actual answer was C
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mock exam question on mapping collections