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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. how to solve this problem
javax.com
View Tutorial By: rajani at 2009-07-18 05:44:55
2. when i use this, the textarea automatically create
View Tutorial By: gary at 2011-06-08 07:14:09
3. hi this is from iniyan....
can you send t
View Tutorial By: iniyan at 2007-09-09 06:50:18
4. Thanks Man , You are Genius i have been looking fo
View Tutorial By: hamza Ouni at 2015-02-22 13:38:02
5. Its super explanation
View Tutorial By: jose at 2011-12-08 13:36:29
6. hello sir
i am simulating railway r
View Tutorial By: karthick at 2008-08-30 03:09:42
7. thank you for code
View Tutorial By: turki at 2013-12-11 13:23:44
8. This article is very good. It is very easy to unde
View Tutorial By: Vandana B.Dass at 2010-02-01 00:54:54
9. Hi Ramlak, Can you please let me know to resolve t
View Tutorial By: Braj at 2009-01-29 08:50:33
10. Please resolve this problems :
ja
View Tutorial By: madhusudhakar at 2014-10-24 06:11:10