This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes Java Keyword(transient) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Java Keyword(transient)" Watch "Java Keyword(transient)" New topic

Java Keyword(transient)


Joined: Jun 29, 2001
Posts: 5
Respected Sir/Madam,
According to the book concept,transient variable can never be static.But,if you declare
transient static int a =10;
its getting compiled.I would like to know the internal concept of the above?
thanking you,
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Your name "sanjaykumaresan" does not comply with the JavaRanch naming policy. Please spare a moment and re-register with a name that meets the requirements. We will take care of deleting your current login.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Please use the JavaRanch forum for discussing site-related issues only. I moving this discussion to Java in General(beginner)
It is sorta covered in the JavaRanch Style Guide.
subject: Java Keyword(transient)
It's not a secret anymore!