Answer to Question #63010 in Java | JSP | JSF for jonney

Question #63010
array class is transient by default ? {true,false} ,and why false if false
1
Expert's answer
2016-11-01T16:15:09-0400
'Transient' marks a member variable not to be serialized when it is persisted to a byte stream. Transient fields are not transferred but ignored when an instance is being serialized. That is, only a member variable can be transient/non-transient, and it is not applicable to a class itself.

If an instance of an array class is a member variable of some other class, it is by default not transient, since a member variable can only be transient only if it was specifically declared as such. The answer is false.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS