Home
MCQS
Spring MCQ Quiz Hub
Spring Mcq Set 13
Choose a topic to test your knowledge and improve your Spring skills
1. For two transactions T1 and T2, T1 reads a field and then T2 updates the field.
Dirty Read
Nonrepeatable read
Phantom read
Lost Updates
2. For two transactions T1 and T2, T1 reads some rows from a table and then T2 inserts new rows into the table.
Dirty Read
Nonrepeatable read
Phantom read
Lost Updates
3. For two transactions T1 and T2, they both select a row for update, and based on the state of that row, make an update to it.
Dirty Read
Nonrepeatable read
Phantom read
Lost Updates
4. Isolation Levels Supported by Spring:-
DEFAULT
READ COMMITTED
READ UNCOMMITTED
all of the mentioned
5. The exceptions that cause a transaction to roll back or not can be specified by attribute:-
rollback
commit
serialize
None of the mentioned
6. Key technology in developing distributed applications, especially multi-tier enterprise applications.
Remoting
EJB
RMI
All of the mentioned
7. Java-based remoting technology that allows two Java applications running in different JVMs to communicate with each other.
Burlap
EJB
RMI
All of the mentioned
8. To expose a service through RMI, you have to create the service interface that extends:-
java.rmi.Remote
java.rmi.RemoteException
all of the mentioned
None of the mentioned
9. To call the methods on a remote service:-
java.rmi.Remote
java.rmi.RemoteException
all of the mentioned
None of the mentioned
10. Spring remoting facilities can significantly simplify the RMI usage on both the server and client sides.
True
False
none
all the mentoined
11. There are several properties you must configure for an RmiServiceExporter instance:-
service name
service interface
service object
all of the mentioned
12. By default, RmiServiceExporter attempts to look up an RMI registry at localhost port 1099.
True
False
none
all the mentoined
13. The Spring support classes facilitate building session beans:-
stateful session beans (SFSBs)
stateless session beans (SLSBs)
message-driven beans (MDBs)
All of the mentioned
14. Spring EJB Support Classes for Different Types of EJB:-
AbstractStatelessSessionBean
AbstractStatefulSessionBean
AbstractMessageDrivenBean
All of the mentioned
15. 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.
True
False
none
all the mentoined
16. OpenEJB 3.1.1 supports:-
EJB 2.x components
EJB 3.0 and EJB 3.1 components
All of the mentioned
None of the mentioned
17. If you want to expose EJB component for local access within an enterprise application, the preceding two interfaces should extend EJBLocalObject and EJBLocalHome.
True
False
none
all the mentoined
18. 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.
True
False
none
all the mentoined
19. To start the OpenEJB container, you first set environment variable:-
EJB_HOME
OPENEJB_HOME
Bashrc
None of the mentioned
20. To use Spring EJB support for your EJB implementation classes, you have to include a few Spring framework JARs:-
spring-beans
spring-core
spring-context
all of the mentioned
21. Interceptor to let Spring configure @Autowired elements on your EJB.
org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor
org.springframework.ejb.interceptor.SpringBeanAutowiring
org.springframework.ejb.interceptor.SpringBean
none of the mentioned
22. A remote stateless session bean requires annotations:-
@Remote
@Stateless
All of the mentioned
None of the mentioned
23. Proxying Spring services with EJB3s, injecting custom resources configured in Spring, or even using Spring to isolate your EJBs from acquiring references to other distributed resources such as a REST endpoint or an RMI endpoint.
SpringBeanAutowiringInterceptor
SpringBeanAutowiring
SpringBean
SpringBeanInterceptor
24. Annotation which decorates the PostageServiceBean:-
@Interceptors
@Autowire
@Wire
@Mention
25. The interceptor obtains beans, by default, from a ContextSingletonBeanFactoryLocation.
True
False
none
all the mentoined
26. EJB interface is a simple Java interface whose methods don’t throw RemoteException.
True
False
none
all the mentoined
27. To declare a JNDI object reference in the Spring IoC container.
JndiObjectFactory
JndiObjectFactoryBean
JndiObject
JndiFactoryBean
28. The default JNDI name for a remote EJB 3.0 component is the EJB class name with Remote as its suffix .
True
False
none
all the mentoined
29. You can configure the JNDI details for factory bean in:-
jndiEnvironment
jndiName
all of the mentioned
none of the mentioned
30. Spring framework itself also offers a remoting technology called HTTP Invoker.
True
False
none
all the mentoined
31. To expose a Hessian or Burlap service, you have to add the:-
Hessian library
Burlap library
All of the mentioned
None of the mentioned
32. For a HessianServiceExporter instance, you have to configure a service object to export and its service interface.
True
False
none
all the mentoined
33. By default, BeanNameUrlHandlerMapping is preconfigured for a Spring MVC application.
True
False
none
None of the mentioned
34. Invoking a Burlap service:-
HessianProxyFactoryBean
BurlapProxyFactoryBean
BurlapProxyFactory
BurlapProxy
35. A web service contract is described using :-
Web Services Description Language
Web Services Description
All of the mentioned
none of the mentioned
36. There are two approaches to developing a web service, depending on whether you define the contract first or last.
True
False
none
all the mentoined
37. In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-
XML
XML Schema(.xsd)
WSDL
All of the mentioned
38. In some cases, it’s also hard to map an object to XML (e.g., an object graph with cyclic references) because there’s actually an impedance mismatch between an object model and an XML model.
True
False
none
All of the mentioned
39. Service exporters that can export a bean as a remote service based on the :-
RMI
Hessian
Burlap
All of the mentioned
40. Spring comes with a service exporter that can export a bean as a SOAP web service.
True
False
all of the mentioned
None of the mentioned
41. The standard for deploying web services on the Java EE platform as of Java EE 1.4:-
JAX-RPC
JAX
RPC
None of the mentioned
42. To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).
True
False
none
all the mentoined
43. If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-
javax.jws.WebService
javax.jws.WebServiceProvider
all of the mentioned
None of the mentioned
44. f you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.
True
False
none
all the mentoined
45. Spring provides a factory that can export beans annotated with:-
javax.jws.WebService
javax.jws.WebServiceProvider
all of the mentioned
None of the mentioned
46. Exposing a stand-alone SOAP endpoint using the:-
SimpleJaxWsServiceExporter
JAX-WS
All of the mentioned
None of the mentioned
47. Tomcat doesn’t support JAX-WS by itself.
True
False
none
all the mentoined
48. CXF represents the consolidation of the Celtix and XFire projects, which each had useful SOAP support.
True
False
none
all the mentoined
49. Factory to use our Spring bean as the implementation:-
jaxws:end
jaxws:endpoint
all of the mentioned
None of the mentioned
50. The concept of an endpoint in web services is much like that of a controller in web applications.
True
False
none
all the mentoined
Submit