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 the difference between the final method and abstract method?

538


what are the high-level thread states? : Java thread

556


What is the syntax and characteristics of a lambda expression? Explain

538


What is struts in java?

573


What are the 3 types of loops in java?

526






What do you understand by private, protected and public?

520


How are java objects passed to a method and what are native methods?

590


What is the symbol for line break?

606


What do you understand by Header linked List?

590


How can we use primitive data types as objects?

556


What is java util hashmap?

518


Explain the meaning of java applet.

602


What loop means?

555


How do you achieve polymorphism in java?

519


What is the unit of plancks constant?

571