

MCQOPTIONS
Saved Bookmarks
This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
If you want to expose EJB component for local access within an enterprise application, the preceding two interfaces should extend EJBLocalObject and EJBLocalHome. |
A. | True |
B. | False |
Answer» B. False | |
2. |
OpenEJB 3.1.1 supports:- |
A. | EJB 2.x components |
B. | EJB 3.0 and EJB 3.1 components |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
3. |
EJB support classes provide access to the Spring IoC container for you to implement your business logic in POJOs and wrap them with EJB components. |
A. | True |
B. | False |
Answer» B. False | |
4. |
Spring EJB Support Classes for Different Types of EJB:- |
A. | AbstractStatelessSessionBean |
B. | AbstractStatefulSessionBean |
C. | AbstractMessageDrivenBean |
D. | All of the mentioned |
Answer» E. | |
5. |
The Spring support classes facilitate building session beans:- |
A. | stateful session beans (SFSBs) |
B. | stateless session beans (SLSBs) |
C. | message-driven beans (MDBs) |
D. | all of the mentioned |
Answer» E. | |
6. |
SPRING_EJB_SUPPORT_CLASSES_FOR_DIFFERENT_TYPES_OF_EJB:-?$ |
A. | AbstractStatelessSessionBean |
B. | AbstractStatefulSessionBean |
C. | AbstractMessageDrivenBean |
D. | All of the mentioned |
Answer» E. | |
7. |
OpenEJB 3.1.1 supports:-$ |
A. | EJB 2.x components |
B. | EJB 3.0 and EJB 3.1 components |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
8. |
EJB_support_classes_provide_access_to_the_Spring_IoC_container_for_you_to_implement_your_business_logic_in_POJOs_and_wrap_them_with_EJB_components.$ |
A. | True |
B. | False |
Answer» B. False | |
9. |
To use Spring EJB support for your EJB implementation classes, you have to include a few Spring framework JARs:- |
A. | spring-beans |
B. | spring-core |
C. | spring-context |
D. | all of the mentioned |
Answer» E. | |
10. |
To start the OpenEJB container, you first set environment variable:- |
A. | EJB_HOME |
B. | OPENEJB_HOME |
C. | Bashrc |
D. | None of the mentioned |
Answer» C. Bashrc | |
11. |
The ejbCreate() method is the EJB hook for initialization of state, much as a JSR-250 annotated @PostConstruct() method or afterPropertiesSet() method work in Java EE 5 and Spring. |
A. | True |
B. | False |
Answer» B. False | |
12. |
If_you_want_to_expose_EJB_component_for_local_access_within_an_enterprise_application,_the_preceding_two_interfaces_should_extend_EJBLocalObject_and_EJBLocalHome. |
A. | True |
B. | False |
Answer» B. False | |
13. |
The Spring support classes facilitate building session beans:? |
A. | stateful session beans (SFSBs) |
B. | stateless session beans (SLSBs) |
C. | message-driven beans (MDBs) |
D. | all of the mentioned |
Answer» E. | |
14. |
By default, RmiServiceExporter attempts to look up an RMI registry at localhost port 1099. |
A. | True |
B. | False |
Answer» B. False | |
15. |
There are several properties you must configure for an RmiServiceExporter instance:- |
A. | service name |
B. | service interface |
C. | service object |
D. | all of the mentioned |
Answer» E. | |
16. |
Spring remoting facilities can significantly simplify the RMI usage on both the server and client sides. |
A. | True |
B. | False |
Answer» B. False | |
17. |
To call the methods on a remote service:- |
A. | java.rmi.Remote |
B. | java.rmi.RemoteException |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» C. all of the mentioned | |
18. |
To expose a service through RMI, you have to create the service interface that extends:- |
A. | java.rmi.Remote |
B. | java.rmi.RemoteException |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» B. java.rmi.RemoteException | |
19. |
Java-based remoting technology that allows two Java applications running in different JVMs to communicate with each other. |
A. | Burlap |
B. | EJB |
C. | RMI |
D. | All of the mentioned |
Answer» D. All of the mentioned | |
20. |
Key technology in developing distributed applications, especially multi-tier enterprise applications. |
A. | Remoting |
B. | EJB |
C. | RMI |
D. | All of the mentioned |
Answer» E. | |