Free Cheat-test Samples and Demo Questions Download
Adobe exams Adobe
Apple exams Apple
Avaya exams Avaya
Check Point exams Check Point
Cisco exams Cisco
Citrix exams Citrix
CIW exams CIW
CompTIA exams CompTIA
EC-Council exams EC-Council
EMC exams EMC
Exin exams Exin
Fortinet exams Fortinet
Hitachi exams Hitachi
HP exams HP
IBM exams IBM
Isaca exams Isaca
ISC exams ISC
Juniper exams Juniper
LPI exams LPI
McAfee exams McAfee
Microsoft exams Microsoft
Oracle exams Oracle
PMI exams PMI
Riverbed exams Riverbed
SNIA exams SAP
Sun exams SAS
Symantec exams Symantec
VMware exams VMware
All certification exams

Oracle 1Z0-895 Exam -

Free 1Z0-895 Sample Questions:

Q: 1
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.)
A. Load-balancing is NOT a guarantee for all EJB 3.1 containers.
B. Clustering is guaranteed to be supported by the EJB 3.1 container.
C. Thread pooling can be optimized by the Bean Provider programmatically.
D. Bean Providers are NOT required to write code for transaction demarcation.
E. Support for server fail-over is guaranteed for an EJB 3.1-compliant application server.
F. EJB 3.1 compliant components are guaranteed to work within any Java EE 6 application server
Answer: A,C,F
Explanation: The EJB tier hosts the business logic of a J2EE application and provides systemlevel services to the business components
problems include state maintenance, transaction management, and availability to local and remote clients.
TheEJB 3.1specificationdoes not address "high-end" features like clustering(not B), loadbalancing(A)and fail-over(not E).
F: The target platformfor EJB isJava EE.

Q: 2
A developer examines a list of potential enterprise applications and selects the most appropriate technologies to use for each application.
For which two applications is EJB an appropriate solution? (Choose two.)
A. To render a GUI for mobile clients.
B. As a container for web-tier components including JSP.
C. As a Web service endpoint accessed by non-Java clients.
D. To receive and respond to HTTP Post requests directly from a web browser.
E. As an online shopping cart which can persist across multiple sessions with a single client.
Answer: C,E

Q: 3
Which two statements are true? (Choose two.)
A. Typically, remotely accessible objects should be coarse-grained.
B. If a client accesses an enterprise bean locally such access must be mediated by the EJB container.
C. A given enterprise bean's transaction information is immutable because it is deployed across various containers.
D. If a container provides services NOT required by the EJB specification, then that container is NOT considered to be an EJB container.
E. An enterprise bean's transaction Information can be accessed by external tools only if the information is contained in an XML deployment descriptor.
Answer: B,D
Explanation: D: An EJB container is nothing but the program that runs on the server and implements the EJB specifications. EJB container provides special type of the environment suitable for running the enterprise components. Enterprise beans are used in distributed applications that typically contains the business logic.

Q: 4
Which API must an EJB 3.1 container make available to enterprise beans at runtime? (Choose one)
A. The JXTA 1.1 API
B. The MIDP 2.0 API
C. The Java SE 6 JNDI API
D. The Java SE 5 JDBC API
Answer: C,D

Q: 5
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*;
7. }
A. @Stateful
public class BarEJB implements Bar {
public void bar () {}
B. @Stateful (name = “Bar”)
public class Barbean implements Bar {
public void bar () {}
C. @Stateful
public class BarBean implements Serializable, Bar {
public void bar () {}
D. @Stateful (name = “bar”)
public class BarBean implements Serializable, Bar {
public void bar () throws java.rmi.RemoteException {}
Answer: C

© 2014, All Rights Reserved