Hi,
Please help me with this question from a mock exam.
Which modifier or modifiers should be used to denote a variable that should not be written out as part of its class' persistent state? (Choose the shortest possible answer.)
Options are:
1-private
2-protected
3-private protected
4-transient
5-private transient
As per me the answer should be private, but its transient.
I found diffrent diffrent answer for this question in diffrent mock
test.
so confused.
Please help me with this.
Thanks
Sandhya