File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes transient static int a=10; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Ranch Office
Reply locked New topic
Author

transient static int a=10;

sanjay kumaresan
Greenhorn

Joined: Jun 29, 2001
Posts: 8
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.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
First of all, you need to go over to the Java In General (Beginner) forum and ask this question. THIS forum is for conversation about running JavaRanch.
When you re-post your question, be sure you tell us WHAT book said such a thing - or perhaps you ought to re-read that section.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transient static int a=10;
 
Similar Threads
Java Keyword(transient)
Java Keyword(transient)
confusion in transient
question about transient modifier
Three Little Questions