Java Programming/Keywords/transient - Wikibooks, Open Books For ...
Maybe your like
- Book
- Discussion
- Read
- Edit
- Edit source
- View history
- Read
- Edit
- Edit source
- View history
- What links here
- Related changes
- Upload file
- Permanent link
- Page information
- Cite this page
- Get shortened URL
- Download QR code
- Wikipedia
- Wikiversity
- Wiktionary
- Wikiquote
- Wikisource
- Wikinews
- Wikivoyage
- Commons
- Wikidata
- MediaWiki
- Meta-Wiki
- Create a collection
- Download as PDF
- Printable version
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, 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.
Syntax:
private transient <member-variable>; or transient private <member-variable>;For example:
| publicclass FooimplementsSerializable { privateStringsaveMe; privatetransientStringdontSaveMe; privatetransientStringpassword; //... } |
See also:
- Java language specification reference: jls
- Serializable Interface. Serializable
- Book:Java Programming/Keywords
- Pages using deprecated enclose attributes
- Pages with deep filing
Tag » What Is Transient In Java
-
Transient Keyword In Java - GeeksforGeeks
-
The Transient Keyword In Java - Baeldung
-
Transient In Java | What, Why And How It Works - Edureka
-
Java Transient Keyword - Javatpoint
-
Why Does Java Have Transient Fields? - Stack Overflow
-
What Is The Transient Keyword In Java?
-
Java Transient이란? - Nesoy Blog
-
What Is Transient Variable In Java? Serialization Example - Java67
-
Java Transient Keyword Example - HowToDoInJava
-
Transient Keyword In Java - W3schools.blog
-
Difference Between Volatile And Transient In Java - Tutorialspoint
-
Transient Keyword In Java - Tutorialspoint
-
Transient Keyword In Java: What Is It & How It Works? | UpGrad Blog
-
[Java] Transient 키워드 의미 - 데이터 엔지니어링