File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63865

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Transient Keyword
It's not a secret anymore!