why to use transient variables when static variables can be
used for Serialization

Answer Posted / yogesh

A transient variable is a variable that may not be serialized.

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local block?

640


What is float in java?

565


What is a java developer salary?

547


What do negative exponents mean?

551


What are thread local variables?

555






How do you allocate memory to object?

520


Explain the difference between the public, private, final, protected, and default modifiers?

552


Can static methods access instance variables in java?

577


Who is the owner of java?

542


How can constructor chaining be done by using the super keyword?

620


What is a generic data type?

574


How can you read content from file in java?

599


Why do we need wrapper classes?

580


Can the interface be final?

582


What is the use of StringTokenizer class?

612