Spring Questions and Answers – AspectJ Aspects

This set of Java Spring Interview Questions and Answers focuses on “AspectJ Aspects”. 1. Tag used to enable AspectJ annotation? a) Introduction b) aop:aspectj-autowire c) aop:aspectj-autoproxy d) AfterSpecial 2. Tag which defined Spring AOP configurations a) aop:config b) aop:configregister c) aop:configbeans d) None of the mentioned 3. What are the ways to declare an advice? … Read more

advertisement

Spring Questions and Answers – Introducing Behaviors and States to Your Beans

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Introducing Behaviors and States to Your Beans”. 1. Which special type of advice is used to implement an interface? a) Introduction b) Before c) After d) AfterSpecial 2. Introduction advice helps in implementing multiple inheritance a) True b) False 3. In introduction … Read more

advertisement

Spring Questions and Answers – Pointcut Definitions

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Pointcut Definitions”. 1. PointCut definitions can’t be reused again a) True b) False 2. Annotation used to refer poincuts? a) @Pointcut b) @PointcutExecution c) @PointcutBefore d) None of the mentioned 3. what will be the output of the code snippet? package com.apress.springrecipes.calculator; … Read more

advertisement

Spring Questions and Answers – AspectJ Annotation

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “AspectJ Annotation”. 1. Which tag informs the spring container about the use of AspectJ annotation? a) aop:aspectj-autowire b) aop:aspectj-name c) aop:aspectj-autoproxy d) none of the mentioned 2. Which of the following is advice supported by Aspect Annotation? a) @Before b) @After c) … Read more

advertisement

Spring Questions and Answers – Property Editors and TaskExecutors in Spring

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Property Editors and TaskExecutors in Spring”. 1. 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 2. Which property editor is used to specify … Read more

advertisement

Spring Questions and Answers – Bean Post Processors

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Bean Post Processors”. 1. Method used to process bean before initialization callback a) scope b) postProcessAfterInitialization() c) postProcessBeforeInitialization() d) it’s own constructor 2. Method used to process bean after initialization callback a) scope b) getBean c) postProcessAfterInitialization() d) it’s own constructor 3. … Read more

advertisement

Spring Questions and Answers – Bean Scopes

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Bean Scopes”. 1. A bean can be requested by:- a) getBean method b) reference from another bean using autowiring, property etc c) all of the mentioned d) none of the mentioned 2. Which attribute is used to set the scope of the … Read more

advertisement

Spring Questions and Answers – Declaring Beans

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Declaring Beans”. 1. Declaring Beans using:- a) Static field b) Object Properties c) All of the mentioned d) None of the mentioned 2. Ways to declare bean from a static field? a) FieldRetrievingFactoryBean b) util:contant c) All of the mentioned d) None … Read more

advertisement

Spring Questions and Answers – Creating Beans

This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Creating Beans”. 1. Beans can be created by which of the following properties? a) Scope b) Property c) Class d) It’s own constructor 2. Which attribute is used to specify class name of the bean? a) name b) id c) class d) … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.