Home Help Java T transient Java Keyword



transient Java Keyword
Posted on: May 25, 2009 at 12:00 AM
The transient is a keyword defined in the java programming language.

transient Java Keyword

     

The transient is a keyword defined in the java programming language. Keywords are basically reserved words which have specific meaning relevant to a compiler in java programming language likewise the transient keyword indicates the following :

-- The transient keyword is applicable to the member variables of a class.
-- The transient keyword is used to indicate that the member variable should not be serialized when the class instance containing that transient variable  is needed to be serialized.

Example to use the transient keyword with a variable:

public class Class1{

private transient String password;
}
 

Related Tags for transient Java Keyword:
javacprogrammingcomcompilerantlanguagewordcompilekeykeywordspilbasiclikeansiifiecallkeywordprogrammpitoramicalcilanwordseilliwisepeintransientcalasmnttrmincaminjesspecallagepimemeanprocatrelwhichsspatkishallfolloweaarspecificreservedrdsrvwingwisvassrdthavevaevaindicicaicaprmindomogrolo


More Tutorials from this section

Ask Questions?    Discuss: transient Java Keyword   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.