answersLogoWhite

0

A variable which is declared as transient will not be serialized. This means that when you use an ObjectOutputStream to store the current state of a class, anything labeled as transient will be skipped over.

A common use of this keyword is to ensure that sensitive user information (usernames, passwords, etc.) is not accidentally saved to a file.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is check a keyword in java?

No, 'check' is not a keyword in java language.


In Java what does the keyword transient do?

It flags a field as a field that should not be considered part of an object's persistent state. It marks a member variable not to be serialized when it is persisted to streams of bytes. (Using Serialization) When an object is transferred through the network, the object needs to be 'serialized'. Serialization converts the object state to bytes. Those bytes are sent over the network and the object is recreated from those bytes in the target machine. Member variables marked by the java transient keyword are not transferred, they are lost on purpose. Ex: When transmitting user authentication information, password fields are made transient in the models so that, they are not transmitted through the network.


Is float is a keyword in java?

yes, float is keyword and data type in java


What does the verify keyword do in Java?

"verify" is not a Java keyword. I believe the link, in related links, has the complete list of Java keywords.


What is foreign keyword in java?

There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.


What is literal in java programming?

Literal in java are L, F, null, true, false These act as keyword(have special meaning in java) but these does'nt comes under the category of Java Keyword.


What is java's keyword for the integer data type?

"int" is the keyword for integer


How does the final keyword affect the behavior of Object type in Java?

In Java, the final keyword specifies that the object created cannot be further redefined or derived.


What do you mean by this keyword in java?

"this" is a Java keyword that references the current object. Any part of the object(instance variables, methods, constructors) can be accessed by calling this.[member].


Is sizeof keyword in Java?

sizeof is not a keyword in Java but many classes have size() or length() methods, which can mean the number of elements, characters, etc. depending on the class.


What is a new keyword in java methods?

new is a keyword to create a instance of object any class.


How do you throw exception in java?

we do it using the throw keyword.

Trending Questions
On which OS platform c pgm run in unix? What is the origin of chemical engineering in the Philippines? Range range range versus hyperbolic navigation system? How many kilowatts in 1 volt? When the electric train is moving down a hill the DC motor acts as? How are classes of simple machines grouped? What are 3 classification of technology? Explain the basics of an aeroplane's Fuel and Hydraulic systems? What is the minimum frequency of ripple in the output? How is the interpolation factor found? In pseudo-code the if-then statement is an example of? Weekly check points for lathe machine? The operational effectiveness and operational suitability questions that must be addressed during Operational Test and Evaluation (OT and ampE) to assess the system's capability to perform its mission? An elastic cord is 63 cm long when a weight of 54 N hangs from it but is 84 cm long when a weight of 81 N hangs from it What is the spring constant k of this elastic cord? A utility company charges its consumers 04 for each kilowatt hours of electricity If in a particular month a consumer used 1076 kilowatt hours of electricitywhat was the person's electric bill for? What is a furnace? How long does it take to become network security engineer? What is The process of changing a half-wave or full-wave rectified voltage to a constant dc voltage? You wish to use a long string of random digits to randomly assign one-half of a group of 100 students to a treatment group You assign consecutive number labels to all the students starting with zero? What is a PID controller?