It's not a secret anymore!*
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
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Java Keyword(transient)" Watch "Java Keyword(transient)" New topic
Author

Java Keyword(transient)

M.Sanjay
Greenhorn

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,
M.Sanjay.
Ajith Kallambella
Sheriff

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.
Thanks!
Ajith

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

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)
forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Keyword(transient)
 
Similar Threads
making a mostly anonymous Comparator be Serializable
Transient variables and serialization
Java Keyword(transient)
transient static int a=10;
how to exclude a class member from hibernate mapping?