Explore topic-wise MCQs in Spring.

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

1.

Which of the following class’s instance is used by TimerTaskExecutor for managing jobs

A. java.util.Timer
B. java.util.Date
C. java.util.HashMap
D. none of the mentioned
Answer» B. java.util.Date
2.

The Quartz integration and message driven POJO container doesn’t needs TaskExecutor Services

A. True
B. False
Answer» C.
3.

Which method provided by ExecutorService is used to check whether job is finished or cancelled

A. Future.isDone()
B. Future.isCancelled()
C. None of the mentioned
D. All of the mentioned
Answer» E.
4.

Method provided by ExectuorService which returns a Future < T >

A. submit
B. publish
C. addService
D. registerService
Answer» B. publish
5.

Which subinterface provides functionality for managing Threads and their events

A. ExecutorService
B. ThreadService
C. All of the mentioned
D. None of the mentioned
Answer» B. ThreadService
6.

Which package is used for periodic work

A. java.lang.Thread
B. java.util.TimerTask
C. java.util.Timer
D. java.util.concurrent
Answer» C. java.util.Timer
7.

For a property editor to be searched correctly, it must be located in the same package as the target class, and the name must be Editor’s name

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

The property value is retrieved by:-

A. getValue method
B. setValue method
C. none of the mentioned
D. all of the mentioned
Answer» E.
9.

Method that converts string into a property value

A. getAsText
B. setAsText
C. regText
D. None of the mentioned
Answer» C. regText
10.

Method which converts property into a string value

A. getAsText
B. setAsText
C. regText
D. None of the mentioned
Answer» B. setAsText
11.

What are the ways to create custom Property Editors?

A. implement PropertyEditor interface
B. extend PropertyEditorSupport Class
C. none of the mentioned
D. all of the mentioned
Answer» E.
12.

Which of the following property editors are registered by Spring?

A. CustomNumberEditor
B. FileEditor
C. CustomDateEditor
D. CustomNetEditor
Answer» C. CustomDateEditor
13.

Which interface is used to create your own property editors?

A. CustomEditorConfigurer
B. RegisterCustomEditor
C. PropertyEditorConfigurer
D. None of the mentioned
Answer» B. RegisterCustomEditor
14.

Which property editor is used to specify a URL String for a property of the URL type?

A. java.net.*
B. java.io.*
C. java.net.URL
D. none of the mentioned
Answer» D. none of the mentioned
15.

Which of the following is used to convert property values to text Values?

A. property Editor
B. property setter
C. property getter
D. none of the mentioned
Answer» B. property setter
16.

FOR_A_PROPERTY_EDITOR_TO_BE_SEARCHED_CORRECTLY,_IT_MUST_BE_LOCATED_IN_THE_SAME_PACKAGE_AS_THE_TARGET_CLASS,_AND_THE_NAME_MUST_BE_EDITOR‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•S_NAME?$#

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

Which subinterface provides functionality for managing Threads and their events$

A. ExecutorService
B. ThreadService
C. All of the mentioned
D. None of the mentioned
Answer» B. ThreadService
18.

Which_package_is_used_for_periodic_work$

A. java.lang.Thread
B. java.util.TimerTask
C. java.util.Timer
D. java.util.concurrent
Answer» C. java.util.Timer
19.

Which of the following class’s instance is used by TimerTaskExecutor for managing jobs$

A. java.util.Timer
B. java.util.Date
C. java.util.HashMap
D. none of the mentioned
Answer» B. java.util.Date
20.

The Quartz integration and message driven POJO container doesn’t needs TaskExecutor Services$

A. True
B. False
Answer» C.
21.

Method_provided_by_ExectuorService_which_returns_a_Future_<_T_>

A. submit
B. publish
C. addService
D. registerService
Answer» B. publish
22.

The property value is retrieved by:?

A. getValue method
B. setValue method
C. none of the mentioned
D. all of the mentioned
Answer» E.