Answer to Question #63007 in Java | JSP | JSF for jonney
what is meant by giving a variable within a class variable a transient attribute?
transient is a Java keyword which marks a member variable not to be serialized when it is persisted to streams of bytes. When an object is transferred through the network, or saved on a hard drive the object needs to be 'serialized'. Serialization converts the object state to serial bytes. Those bytes are sent over the network and the object is recreated from those bytes. Member variables marked by the java transient keyword are not transferred; they are lost intentionally.
In an object you may have information that you don't want to serialize (a stored password or any private information), or perhaps it doesn't make sense to serialize (a reference to a parent factory object). Marking these as 'transient' means the serialization mechanism will ignore these fields.
I am very satisfied with every service Assignment Expert provided me with. From support to the completion of the assignment, its quality, and the superb treatment I received, every step of the way was just fantastic and know that I will continue using your services in the future.