What means? How to use : transient keyword!

S

Se-Jin Park

Hi, there.
I'm studing java package, encounted "transient" keyword in its source.
what's the mean? and how do I use it?

thanks!
 
C

Chris Smith

Se-Jin Park said:
I'm studing java package, encounted "transient" keyword in its source.
what's the mean? and how do I use it?

The transient keyword is somewhat odd. It's completely non-functional
from a language standpoint. However, libraries may inspect a class by
reflection and determine which of its fields are declared transient.

The intent is that persistence mechanisms, such as serialization, will
use transient to ignore certain data that should not be persistently
stored. Serialization does, in fact, do this.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top