posted 21 years ago
K -
I'm trying to find where we said that in the book (can you help with a page number?)... anyway here's what I did find that's close:
'The transient modifier applies only to instance variables'.
Your compiler might let you mark a static variable as transient, but static variables aren't part of an object's persistent state, so it's really meaningless. (It's not on the exam and the spec doesn't say.)
'Instance variables can -
Be marked as final or transient'
I guess we should have said 'final and/or transient'
Does that help?
-Bert
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)