Java EE 6 Enterprise JavaBeans Developer Certified Expert

Here you have the best Oracle 1z0-895 practice exam questions

  • You have 90 total questions to study from
  • Each page has 5 questions, making a total of 18 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on October 30, 2025
  • This site is not affiliated with or endorsed by Oracle.
Question 1 of 90
A developer needs to deliver a large-scale enterprise application that connects developer chooses an EJB 3.1-compliant application server, which three are true about the EJB business component tier? (Choose three.)
    Correct Answer: A, D, F

Question 2 of 90
Which API must an EJB 3.1 container make available to enterprise beans at runtime?
    Correct Answer: C

Question 3 of 90
A developer wants to write a stateful session bean using the following interface as local business interface:
1. package acme;
2. public interface Bar {
3. public void bar ();
4. }
Assuming there is not an ejb-jar.xml file, which code can be inserted into Lines 4-6 below to define the bean with the ejb name of BarBean?
1. package acme;
2. import javax.ejb.*;
3. import java.io.*;
4.
5.
6.
7. }
    Correct Answer: C

Question 4 of 90
A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development team; and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size.
The developer must consider that the state of the session bean can be influenced by either passivation or timeout.
Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations? (Choose three.)
    Correct Answer: C, D, E

Question 5 of 90
A stateful session bean contains a number of instance variables. The types of instance variables A and B are serializable. Instance variable B is a complex type which is populated by many business calls, and can, therefore, not be refilled by the client without starting all over. A helper instance variable C is defined as having a Serializable type, and can hold all the information which is in variable B. for example, B is of type XML-DOM tree and C of Type String.
Which two solutions, when combined, maintain the state of the session bean over a passivation and activation by the container? (Choose two.)
    Correct Answer: C, E