WHAT IS TRANSIENT VARIABLE?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
Java 
 1315  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    What is transient variable?

    Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.

      Modified On Mar-27-2018 12:10:17 AM

Answer

NEWSLETTER

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