This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Transient Keyword Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Transient Keyword" Watch "Transient Keyword" New topic

Transient Keyword

Varun Garg

Joined: Jul 30, 2008
Posts: 16
Hey Guys,

Can you please give me working code a example of transient keyword.

Thank You

Regards,<br />Varun garg<br />MS in Computer Science<br />SCJP - 1.4 @ 91 %
amit k prabhat

Joined: Aug 09, 2008
Posts: 6
check the following link
Demonstrates Transient keyword example
Mario Razec

Joined: Aug 01, 2008
Posts: 17
Object needs to be serializable (writing the state of an object)

So When use modifier Transient you not will get serializable your object...
it won't be transmitted in the byte stream to wherever the object is destined.
Means we cannot change the value and this variable can not be stored in a memory.

Checking Example of our friend: amit k prabhat..

see ya
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61981

"Razec", please check your private messages for an important administrative matter. Again.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Transient Keyword