Multiple choice

Which of the following statement(s) is/are true?

  1. Static variables can not be serialized.

  2. Static variables can be serialized.

  3. Declaring a variable as volatile means that the variable will be shared in multithreaded environment.

  4. All of the above

  5. Only (1) and (3)

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

Yes, these are the true statements.