Explore topic-wise MCQs in Spring.

This section includes 21 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.

1.

Spring framework itself also offers a remoting technology called HTTP Invoker.

A. True
B. False
Answer» B. False
2.

Lightweight remoting technologies developed by Caucho Technology.

A. Hessian
B. Burlap
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
3.

You can configure the JNDI details for factory bean in:-

A. jndiEnvironment
B. jndiName
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
4.

The default JNDI name for a remote EJB 3.0 component is the EJB class name with Remote as its suffix .

A. True
B. False
Answer» B. False
5.

EJB interface is a simple Java interface whose methods don’t throw RemoteException.

A. True
B. False
Answer» B. False
6.

YOU_CAN_CONFIGURE_THE_JNDI_DETAILS_FOR_FACTORY_BEAN_IN:-?$

A. jndiEnvironment
B. jndiName
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
7.

Spring framework itself also offers a remoting technology called HTTP Invoker.$

A. True
B. False
Answer» B. False
8.

Lightweight remoting technologies developed by Caucho Technology.$

A. Hessian
B. Burlap
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
9.

Lightweight_remoting_technologies_developed_by_Caucho_Technology.$

A. Hessian
B. Burlap
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
10.

Invoking a Burlap service:-

A. HessianProxyFactoryBean
B. BurlapProxyFactoryBean
C. BurlapProxyFactory
D. BurlapProxy
Answer» C. BurlapProxyFactory
11.

By default, BeanNameUrlHandlerMapping is preconfigured for a Spring MVC application.

A. True
B. False
Answer» B. False
12.

For a HessianServiceExporter instance, you have to configure a service object to export and its service interface.

A. True
B. False
Answer» B. False
13.

To expose a Hessian or Burlap service, you have to add the:-

A. Hessian library
B. Burlap library
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
14.

The default JNDI name for a remote EJB 3.0 component is the EJB class name with Remote as its suffix ?

A. True
B. False
Answer» B. False
15.

To declare a JNDI object reference in the Spring IoC container.

A. JndiObjectFactory
B. JndiObjectFactoryBean
C. JndiObject
D. JndiFactoryBean
Answer» C. JndiObject
16.

EJB interface is a simple Java interface whose methods don’t throw RemoteException.$

A. True
B. False
Answer» B. False
17.

The interceptor obtains beans, by default, from a ContextSingletonBeanFactoryLocation.

A. True
B. False
Answer» B. False
18.

Annotation which decorates the PostageServiceBean:-

A. @Interceptors
B. @Autowire
C. @Wire
D. @Mention
Answer» B. @Autowire
19.

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.

A. SpringBeanAutowiringInterceptor
B. SpringBeanAutowiring
C. SpringBean
D. SpringBeanInterceptor
Answer» B. SpringBeanAutowiring
20.

A remote stateless session bean requires annotations:-

A. @Remote
B. @Stateless
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
21.

Interceptor to let Spring configure @Autowired elements on your EJB.

A. org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor
B. org.springframework.ejb.interceptor.SpringBeanAutowiring
C. org.springframework.ejb.interceptor.SpringBean
D. none of the mentioned
Answer» B. org.springframework.ejb.interceptor.SpringBeanAutowiring