Expected Versus Actual Output
Expected Output
Is the what you guessed the output would be?
Notice that the Die class does not implement Serializable or Externalizable, so the Main.main() method should not have been able to Serialize the object.
Actual Output
Here’s the actual output:
By now you’ve figured out that the expected and actual output are generally not the same.
Assignment: Form a Theory
Spend a few moments and try to figure out how to make this output happen. Write down those ideas. Please do so before continuing to the next section.
Comments