Hi,
I am sitting the OCPJP exam this week and I just came across this question in Oracle's list of sample questions for the exam.
If, on line 7, t is successfully serialized and then deserialized, what is the result?
The answer they give is "0 7 0" as correct, stating correctly that static or transient variables are not serialized.
However x1 should still be 7, the same as it is set two lines above as it is static.
So the answer should be 7 7 0.
This does not inspire me with confidence for the exam
The question can be found on the link below, labeled objective 3.3
// You might need to select your region
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=303&p_certName=SQ1Z0-851