Forums Java Help Explain the usage of the keyword transient

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15243
    juwanine
    Participant

    Explain the usage of the keyword transient?

    #15246
    ahprofessional
    Participant

    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 for integers).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.