live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

Oracle Java EE 6 Enterprise JavaBeans Developer Certified Expert - 1Z0-895 Exam Questions

QUESTION NO: 1
Suppose developer wants to create an EJB component that performs data validation every hour. Given the following Stateless session bean:

What is the minimum modification you would need to make to the bean to support notification from the TimerService once the timer expires?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 2
Which must result in the destruction of a stateful session bean?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 3
Which three methods can Bean Developer use in any EJB compliant container implementing the full Java EE6 product? (Choose three.)
Correct Answer: B,C,D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 4
Suppose an EJB named HelloWorldBean is deployed as a standalone ejb-jar. Assuming the HelloWorldBean is implemented as follows:

Which HelloWorldBean methods are accessible by another EJB within the same ejb-jar?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 5
Assume an EJB application is comprised of the following EJB fragment:

You have been asked to convert the type of InventoryReportBean into a singleton session bean. How would you achieve this task?
Exhibit C:

Exhibit D:
Correct Answer: C
QUESTION NO: 6
Given the following stateless session bean:

How would you change the EJB to prevent multiple clients from simultaneously accessing the sayHello method of a single bean instance?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 7
An enterprise developer has received ejb-jars from multiple Bean Provides and wants to combine them into a single ejb-jar as well as altering the method permissions on some of the beans without recompiling any of the code contained in the ejb-jar. Which is correct?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 8
A developer implements a system in which transfers of goods are monitored. Each transfer needs a unique ID for tracking purposes. The unique ID is generated by an existing system which is also used by other applications. For performance reasons, the transaction that gets the unique ID should be as short as possible. The scenario is implemented in four steps which are implemented in four business methods in a CMT session bean:

These methods are called by the addTransfer method of a second CMT session bean in the following order:
checkGooods, getUniqueId, checkAmount, storeTranfer
Assuming no other transaction-related metadata, which is the correct set of transaction attributes for the methods in the session beans?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 9
Which API must an EJB 3.1 container make available to enterprise beans at runtime?
Correct Answer: D