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
Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
Joined: Aug 25, 2003
What can't be combined is volatile and final modifiers if it feels close to transient and final. Using both altogether will cause a compiler error. This combination is not in the K&B book, so I'm not sure if the exam's objectives require you to memorize that.