Multiple choice

Which of the following statements is true about transient variable in java?

  1. We can not serialize the transient variables.

  2. Transient variables can be used in multithreading environment.

  3. Transient variables can not be static or final.

  4. All of the above

  5. Only (1) and (2)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, all the option are true.