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.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. hey. How would i get the ClientLists displayed in
View Tutorial          By: andrew at 2009-07-24 14:10:24

2. I don't think GSM/Modem simulatur, will get it wor
View Tutorial          By: Michael Chon at 2008-10-08 10:35:55

3. im taking hard time in doing programming
View Tutorial          By: joshua louis sumalinog at 2014-12-11 03:26:46

4. Hi,
tell me What is struts chaining with ex

View Tutorial          By: Mekala venkateswara at 2010-07-03 09:39:59

5. i am trying to run the above example in eclipse bu
View Tutorial          By: Prathyusha at 2015-03-10 11:01:06

6. Thank you!!
View Tutorial          By: Diego at 2015-07-16 21:11:58

7. Can u show how to do text to speech with servlet.
View Tutorial          By: Rotika at 2011-01-23 20:54:40

8. method overloading possible across classes????
View Tutorial          By: Rohit at 2011-01-26 20:23:02

9. i got really nice help from the code. Thanks.
View Tutorial          By: Amit at 2009-04-10 08:18:40

10. its work well , thanks for code , but if any body
View Tutorial          By: mary at 2007-12-16 07:10:58