Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes question  about transient modifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "question  about transient modifier" Watch "question  about transient modifier" New topic

question about transient modifier

Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
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;
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Milind,
Though there is no current implementation of this specification, static transient are allowed and compile just fine.
Jonathan Jeban
Ranch Hand

Joined: Oct 08, 2000
Posts: 52
Transient variables can be both final and static.
RHE have corrected this in their errata.(They have asked to
ignore that statement)

Hope this helps..
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: question about transient modifier
jQuery in Action, 3rd edition