Comment on Tutorial - Transient vs Volatile modifiers in Java By Reema sen
Comment Added by : Mohit
Comment Added at : 2010-11-18 00:26:24
Comment on Tutorial : Transient vs Volatile modifiers in Java By Reema sen
What is transient keyword in Java?
What is Serilization?
If you want to understand what is transient, then first learn what is serilization concept in Java if you are not familiar with that. Serilization is the process of making the object's state persistent. That means the state of the object is converted into stream of bytes and stored in a file. In the same way we can use the de-serilization concept to bring back the object's state from bytes. This is one of the important concept in Java programming because this serilization is mostly used in the networking programming. The object's which are needs to be transmitted through network has to be converted as bytes, for that purpose ever class or interface must implements Serilization interface. It is a marker interface without any methods.
What is Transient?
By default all the variables in the object is converted into the persistent. In some cases, you may want to avoid persisting some variables because you don't have the necesscity to persist those varibale. So, you can declare those variables as transient. if the variable is declared as transient, then it will not be persisted. It is the main purpose of the transient keyword.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
2. hi,Very Nice tutorials and iwant to know how to ch
View Tutorial By: vimala at 2010-07-08 05:05:17
4. Thanks a lot this thing was very importent for me!
View Tutorial By: Andrew at 2010-05-23 01:47:04
5. What about GraphicsDemo (class...?) mentioned in l
View Tutorial By: Achi at 2008-01-08 04:21:57
6. great tutorial but for me blob handling is still s
View Tutorial By: Sarcina Saptamani at 2011-11-10 09:15:07
7. thanx allot its a very good sample , but im trying
View Tutorial By: Waleed Qaffaf at 2011-06-09 09:37:15
9. hi i want to send a message from my site to a phon
View Tutorial By: dinesh at 2009-09-16 10:25:37
10. i am in beginning level, i tried by this code. but
View Tutorial By: Shahana Akter at 2014-09-09 10:30:21