Spring interview questions part 10

Spring interview questions part 10

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Tag allows any view inheriting this layout automatic access to JavaScript libraries.

Correct Answer is : g:javascript library=”application”

2. A view’s body content is inside the:-

Correct Answer is : g:layoutBody

3. GORM dynamic finder comparators:-

Correct Answer is : All of the mentioned

4. Declaring Beans using:-

Correct Answer is : All of the mentioned

5. Ways to declare bean from a static field?

Correct Answer is : All of the mentioned

6. Declaring a bean from a static field requires a built-in factory bean FieldRetrievingFactoryBean and fully qualified field name or instance field is specified in the list property.

Correct Answer is : FALSE

7. ) public abstract class Product { public static final Product AAA = new Battery("AAA", 2.5); public static final Product CDRW = new Disc("CD-RW", 1.5); ... } com.shop.Product.AAA name="staticField" valuecom.shop.Product.CDRW/value   B) Product aaa = com.shop.Product.AAA; Product cdrw = com.shop.Product.CDRW;

Correct Answer is : A and B are equivalent

8. As an alternative to specifying the field name in the staticField property explicitly, you can set it as the bean name of FieldRetrievingFactoryBean.

Correct Answer is : TRUE

9. Is this bean configuration metadata correct? bean id="com.shop.Product.AAA" class="org.springframework.beans.factory.config. FieldRetrievingFactoryBean" / bean id="com.shop.Product.CDRW" class="org.springframework.beans.factory.config. FieldRetrievingFactoryBean" /

Correct Answer is : Yes

10. Which tag is also allowed by static field?

Correct Answer is : util:constant

11. Is this bean configuration correct? util:constant id="cdrw" static-field="com.shop.Product.CDRW" />

Correct Answer is : No

12. Declaring bean form object properties can be done using:-

Correct Answer is : PropertyPathFactoryBean

13. Inner Bean can be retrieved by it’s name.

Correct Answer is : FALSE

14. PropertyPathFactoryBean declares a bean from an:-

Correct Answer is : All of the mentioned

15. The propertyPath property of PropertyPathFactoryBean can accept only a single property name.

Correct Answer is : FALSE

16. Alternate way of PropertyPathFactoryBean to declare a bean.

Correct Answer is : util:property-path tag

17. We can combine target Object and propertyPath properties as bean name/id of PropertyPathFactoryBean.

Correct Answer is : TRUE

18. The Spring Expression Language can be accessed by:-

Correct Answer is : All of the mentioned

19. The core interface of Spring email support is:-

Correct Answer is : MailSender

20. Before you implement the ErroNotifier interface in this way, you may need a local email server that supports the Simple Mail Transfer Protocol (SMTP) for testing purposes.

Correct Answer is : TRUE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon