posted 18 years ago
final implies different things depending on the context:
A final class cannot be subclassed.A final method cannot be overridden.A final variable cannot have its assignment changed.So a private method is implicitly final, because it is not accessible outside of its own class and therefore can't be overridden. But a private variable is not implicitly final, because it can have its assignment changed.
A variable marked transient is simply not stored to an object's persistent state (for example, if it's Serializable). But I don't know of any conflict between transient and final, nor between transient and private.
[ December 07, 2005: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org