Forums Java Help Explain the usage of the keyword transient

This topic contains 1 reply, has 2 voices, and was last updated by  ahprofessional 7 years, 5 months ago.

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.