Java Multithreading Question and Answers
9. | What is transient variable? |
---|---|
A transient variable is a variable that may not be serialized during serialization and which is initialized by its default value during de serialization. | |
10. | What is synchronization? |
---|---|
|
|
11. | What is deadlock? |
---|---|
When two threads are waiting each other and can't precede the program is said to be deadlock. | |
12. | How can a dead thread be restarted? |
---|---|
A dead thread cannot be restarted. | |