A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
question about transient modifier
Joined: Oct 23, 2000
Oct 31, 2000 00:25:00
I read in RHE that transient variables may not be static or final. But why does the following line compile ?
final static transient int i = 10;
Joined: Nov 22, 2008
Oct 31, 2000 01:50:00
Though there is no current implementation of this specification, static transient are allowed and compile just fine.
Joined: Oct 08, 2000
Oct 31, 2000 04:08:00
Transient variables can be
both final and static
RHE have corrected this in their
.(They have asked to
ignore that statement)
Hope this helps..
I agree. Here's the link:
subject: question about transient modifier
transient variable with static,final modifiers
final transient and static transient
is trasient + static valid ??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014