Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is the purpose of a Transient variable?

Sumit Rawal answered on May 21, 2023 Popularity 2/10 Helpfulness 3/10

Contents


More Related Answers

  • what is transient in java
  • transient scope
  • Transient service
  • transient service
  • Transient Entity
  • Why do we mark a data member transient?

  • What is the purpose of a Transient variable?

    0

    A transient variable would not be serialized even if the class to which it belongs is serialized.

    Sample class which has transient variable is shown below:Transitent variable

    Popularity 2/10 Helpfulness 3/10 Language java
    Source: Grepper
    Tags: java transient
    Link to this answer
    Share Copy Link
    Contributed on May 21 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.