Spring Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Spring Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : A

Explanation

Dependency Injection is a design pattern which implements Inversion of Control for software applications.

Q 2 - Which is the correct implementation class of BeanFactory?

A - XmlBeanFactory

B - ClassPathBeanFactory

C - FileSystemBeanFactory

D - AdvancedBeanFactory

Answer : A

Explanation

XmlBeanFactory is the implementation class of BeanFactory. Other mentioned classes do not exists.

Answer : A

Explanation

Using Bean autowiring, Spring resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory without using <constructor-arg> and <property> elements..

Q 7 - Which of the following database is not supported using jdbcTemplate?

A - MySql

B - PostgresSql

C - NoSql

D - Oracle

Answer : C

Explanation

NoSql is not supported using jdbcTemplate.

Q 8 - If a bean is created once per Ioc Container, scope is

A - singleton

B - global-session

C - prototype

D - request

Answer : A

Explanation

If a bean is created once per Ioc Container, scope is singleton.

Q 9

A bean must have id attribute in beans configuration file.

A - True

B - False

Answer : B

Explanation

Id is not a mandatory attribute in beans configuration file.

Answer : C

Explanation

ACID stands for Atomicity, Consistency, Isolation, Durability.

spring_questions_answers.htm
Advertisements