This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Transient Keyword" Watch "Transient Keyword" New topic
Author

Transient Keyword

Varun Garg
Greenhorn

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
Greenhorn

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

Joined: Aug 01, 2008
Posts: 17
Detail:
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
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transient Keyword
 
Similar Threads
Externalizable Interface
How can final and transient be used in a variable declaraion?
transient variables
Check out this Serialization Stuff !
Transient Var