WHAT IS THE USE OF TRANSIENT KEYWORD IN JAVA?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 766  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    what is the use of transient keyword in java?

    Transient keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero forr integers).

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!