desnunan
Quiz by , created more than 1 year ago

Class version control and deserialization in Java

36
0
0
desnunan
Created by desnunan over 10 years ago
Close

Version Control

Question 1 of 4

1

Which of these changes can hurt deserialization?

Select one or more of the following:

  • Adding new instance variables to the class

  • Deleting an instance variable

  • Removing classes from the inheritance tree

  • Changing a non-transient instance variable to transient

  • Changing a class from Serializable to not Serializable

Explanation

Question 2 of 4

1

Adding classes to the inheritance tree can hurt deserialization

Select one of the following:

  • True
  • False

Explanation

Question 3 of 4

1

Changing the access level of an instance variable can hurt deserialization

Select one of the following:

  • True
  • False

Explanation

Question 4 of 4

1

Which of these changes to a class do NOT hurt deserialization?

Select one of the following:

  • Changing an instance variable from transient to non-transient

  • Changing an instance variable to static

Explanation