JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 34
Spring interview questions part 34
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. When serializing an object to a file, the standard convention in Java is to give the file a:
A. .war
B. .java
C. .ser
D. none of the mentioned
Show Correct Answer
Correct Answer is :
.ser
2. What will be the value of transient field after deserialization:-
A. 0
B.
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
3. If the class implements java.io.Serializable, then it is serializable; otherwise, it’s not.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. A transaction propagation behavior can be specified by the:-
A. propagation
B. consistency
C. isolation
D. All of the mentioned
Show Correct Answer
Correct Answer is :
propagation
5. Transaction propagation behavior are defined in the:-
A. org.springframework.transaction.Transaction
B. org.springframework.transaction.TransactionDefinition
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
org.springframework.transaction.TransactionDefinition
6. If there’s an existing transaction in progress, the current method should run within this transaction.
A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Show Correct Answer
Correct Answer is :
Required
7. The current method must start a new transaction and run within its own transaction.
A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Show Correct Answer
Correct Answer is :
REQUIRES NEW
8. If there’s an existing transaction in progress, the current method can run within this transaction.
A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Show Correct Answer
Correct Answer is :
SUPPORTS
9. The current method should not run within a transaction.
A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Show Correct Answer
Correct Answer is :
NOT SUPPORTED
10. The current method must run within a transaction.
A. Required
B. MANDATORY
C. SUPPORTS
D. NOT SUPPORTED
Show Correct Answer
Correct Answer is :
MANDATORY
11. The current method should not run within a transaction. If there’s an existing transaction in progress, an exception will be thrown.
A. Required
B. MANDATORY
C. SUPPORTS
D. NEVER
Show Correct Answer
Correct Answer is :
NEVER
12. If there’s an existing transaction in progress, the current method should run within the nested transaction.
A. Required
B. MANDATORY
C. NESTED
D. NEVER
Show Correct Answer
Correct Answer is :
NESTED
13. For two transactions T1 and T2, T1 reads a field that has been updated by T2 but not yet committed.
A. Dirty Read
B. Nonrepeatable read
C. Phantom read
D. Lost Updates
Show Correct Answer
Correct Answer is :
Dirty Read
14. For two transactions T1 and T2, T1 reads a field and then T2 updates the field.
A. Dirty Read
B. Nonrepeatable read
C. Phantom read
D. Lost Updates
Show Correct Answer
Correct Answer is :
Nonrepeatable read
15. For two transactions T1 and T2, T1 reads some rows from a table and then T2 inserts new rows into the table.
A. Dirty Read
B. Nonrepeatable read
C. Phantom read
D. Lost Updates
Show Correct Answer
Correct Answer is :
Phantom read
16. For two transactions T1 and T2, they both select a row for update, and based on the state of that row, make an update to it.
A. Dirty Read
B. Nonrepeatable read
C. Phantom read
D. Lost Updates
Show Correct Answer
Correct Answer is :
Lost Updates
17. Isolation Levels Supported by Spring:-
A. DEFAULT
B. READ COMMITTED
C. READ UNCOMMITTED
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. The exceptions that cause a transaction to roll back or not can be specified by attribute:-
A. rollback
B. commit
C. serialize
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rollback
19. A web service contract is described using :-
A. Web Services Description Language
B. Web Services Description
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Web Services Description Language
20. There are two approaches to developing a web service, depending on whether you define the contract first or last.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs