Spring Interview Questions - 33 | Snaprecruit.com

Spring Interview Questions - 33 | Snaprecruit.com

Spring interview questions part 33

Spring interview questions part 33

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

Total Questions: 20

1. Attribute used to display custom login page.

Correct Answer is : login-url

2. Attribute which specifies redirection URL on login error.

Correct Answer is : authentication-failure-url

3. Session scope attribute to display error message.

Correct Answer is : SPRING_SECURITY_LAST_EXCEPTION

4. Logout service is configured by:-

Correct Answer is : logout

5. Element which redirects to a specific URL on logout.

Correct Answer is : logout-success-url

6. Anonymous login services can be configured by:-

Correct Answer is : anonymous

7. Default values of customized Username and authorities are anonymousUser and ROLE_ANONYMOUS respectively.

Correct Answer is : TRUE

8. Remember-me support can be configured by:-

Correct Answer is : remember-me

9. By default, Remember-me encodes the username, password, remember-me expiration time, and a private key as a token, and stores it as a cache in the user’s browser.

Correct Answer is : FALSE

10. Spring Security algorithms to secure password.

Correct Answer is : All of the mentioned

11. Connection of database with Apache derby server requires.

Correct Answer is : All of the mentioned

12. You can specify the statements for querying a user’s information and authorities in the users-by-username-query and authorities-by-username-query attributes.

Correct Answer is : TRUE

13. Utility to calculate MD5 digests for your password.

Correct Answer is : Jacksum

14. Java provides a mechanism, where an object can be represented as a sequence of bytes:-

Correct Answer is : Serialization

15. After a serialized object has been written into a file, it can be read from the file and deserialized.

Correct Answer is : TRUE

16. Serialization is JVM independent.

Correct Answer is : TRUE

17. Classes which are high-level streams that contain the methods for serializing and deserializing an object.

Correct Answer is : All of the mentioned

18. The ObjectOutputStream class contains methods for writing various data types.

Correct Answer is : public final void writeObject(Object x)

19. The ObjectInputStream class contains methods for writing various data types.

Correct Answer is : public final Object readObject()

20. For a class to be serialized successfully:

Correct Answer is : The class must implement the java.io.Serializable interface.

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon