Explore topic-wise MCQs in Spring.

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

1.

Tag used to declare aspects

A. aop:config
B. aop:auto-proxy
C. aop:autowire
D. None of the mentioned
Answer» B. aop:auto-proxy
2.

How to introduce counter field to original bean class?

A. Using Spring AOP
B. Implementing interface
C. AspectJ Pointcut
D. None of the mentioned
Answer» B. Implementing interface
3.

How to keep track of the usage of your beans

A. Calling Count
B. Last modified date
C. New Interface to your object
D. All of the mentioned
Answer» E.
4.

Attribute used to specify implementation class

A. no such attribute
B. defaultImpl
C. defaultInterface
D. defaultImplement
Answer» C. defaultInterface
5.

Target Classes can be denoted by Introduction Annotation

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

Annotation used to declare an introduction

A. Before
B. After
C. @DeclareParents
D. None of the mentioned
Answer» D. None of the mentioned
7.

How does an Introduction advice do this in Spring?

A. dynamic proxy
B. web proxy
C. implements org.springframework.net.bundle interface
D. none of the mentioned
Answer» B. web proxy
8.

In introduction advice you have to modify class to introduce new methods

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

Introduction advice helps in implementing multiple inheritance

A. True
B. False
Answer» B. False
10.

Which special type of advice is used to implement an interface?

A. Introduction
B. Before
C. After
D. AfterSpecial
Answer» B. Before
11.

HOW_TO_INTRODUCE_COUNTER_FIELD_TO_ORIGINAL_BEAN_CLASS??$

A. Using Spring AOP
B. Implementing interface
C. AspectJ Pointcut
D. None of the mentioned
Answer» B. Implementing interface
12.

Tag_used_to_declare_aspects$

A. aop:config
B. aop:auto-proxy
C. aop:autowire
D. None of the mentioned
Answer» B. aop:auto-proxy
13.

How to keep track of the usage of your bean?

A. Calling Count
B. Last modified date
C. New Interface to your object
D. All of the mentioned
Answer» E.