Share on Google+Share on Google+

swapnil s. powar
transient keyword
1 Answer(s)      6 years and 4 months ago
Posted in : Java Beginners

how to use transient keyword?

Ads

View Answers

December 13, 2010 at 3:54 PM


Hi Friend,

The transient keyword is used to indicate that the member variable should not be serialized when the class instance containing that transient variable is needed to be serialized.

By default all the variables in the object is converted into the persistent but if the variable is declared as transient, then that variable will not be persisted.

Thanks










Related Tutorials/Questions & Answers:
transient keyword
transient keyword  how to use transient keyword?   Hi Friend, The transient keyword is used to indicate that the member variable should not be serialized when the class instance containing that transient variable
transient keyword - Java Beginners
transient keyword  what is transient keyword in java.? plz explain with example
Advertisements
transient Java Keyword
transient Java Keyword       The transient is a keyword defined in the java programming language... to a compiler in java programming language likewise the transient keyword indicates
Keyword- transient
Keyword- transient       The transient keyword is used to indicate to the JVM that the indicated... the object is archived. At that time, the transient marker is ignored by the Java
Transient Java Keyword
Transient Java Keyword In this section we will discuss about transient keyword in java. Transient is a keyword in java which is used to prevent any variable...? Transient keyword provide you a control on serialization process in java and allow
What is a transient variable?
) with transient keyword becomes transient variable in java. It will be beneficiary...What is a transient variable?   Hi, What is a transient variable... to transient variable. The Serialization is a process in which the object's state
What is Transient variable in Java
, just add Transient keyword and it will not be considered or will be ignored... from getting converted, one must declare the variable Transient keyword...Transient variable in Java is used to show that a particular field should
java Transient variable - Java Beginners
variables in java?  Hi friend, The transient is a keyword defined... the transient keyword indicates the following : -- The transient keyword is applicable to the member variables of a class. -- The transient keyword is used
transient variables in java
transient variables in java  hello, What are transient variables in java?   hii, Transient variables are variable that cannot be serialized
Transient and detached objects
Transient and detached objects  Explain the difference between transient (i.e. newly instantiated) and detached objects in hibernate
o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum=
o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum=  Hi, I am getting the following error while connecting to remote HBase server from Java program: o.a.h.h.z.RecoverableZooKeeper - Possibly transient
Java Transient Variable
Java Transient Variables Before knowing the transient variable you should firs... mark that object as persistent. You can also say that the transient variable is a variable whose state does not  Serialized. An example of transient
Keyword - this
Keyword - this       A keyword is a word having a particular meaning to the programming language. Similarly, this keyword is used to represent an object constructed from a class
What is this keyword?
What is this keyword?  What is this keyword
The if Keyword
The if Keyword         The if is a keyword, which is used to perform the selection... that are executed in case, the test condition specified by the if keyword evaluates
Java keyword
Java keyword  Is sizeof a keyword
super keyword
super keyword  super keyword explain
The for Keyword
The for Keyword       The for is Java keyword that is used to execute a block of code... statement increments the value of i by one. The for keyword may not be used
final keyword
final keyword  why is final keyword used in java
Return keyword
Return keyword  how do we use return in methods?   Java use of return keyword import java.util.*; public class ReverseString{ public... at Return Keyword
Dynamic keyword
Dynamic keyword  hi....... What is the dynamic keyword used for in flex? give me the answer ASAP Thanks  Ans: Dynamic keyword... during the run-time. Just add the magic keyword dynamic to the class definition
K - Java Glossary
; Keyword- transient The transient keyword is used to indicate... are required to be saved when the object is archived. At that time, the transient marker is ignored by the Java runtime system.     Keyword
static keyword
static keyword  please give some detail about Static keyword.   Static Variables Static variables are class variables that are shared by all instance of class .. 1)It is a variable which belongs to the class
SQL as Keyword
SQL as Keyword       The SQL Key word used in SQL are createTable,Insert into,select,delete... keywords like, create table keyword is used to create a table Stu_Table
The final Keyword
The final Keyword       The final is a keyword. This is similar to const keyword in other languages. This keyword may not be used as identifiers i.e. you cannot declare
static keyword with real example
static keyword with real example  static keyword with real examplestrong text
this java keyword
this java keyword       "this" is a keyword defined in the java programming language. Keywords... in java programming language likewise the this keyword indicates the following
why using static keyword
why using static keyword  why using static keyword
The While keyword
The While keyword       While is a keyword defined in the java programming language. Keywords... programming language likewise the while keyword indicates the following
The void keyword
The void keyword       The void is a keyword defined in the java programming language. Keywords... programming language likewise the void keyword indicates the following
The volatile keyword
The volatile keyword       The volatile is a keyword defined in the java programming language. Keywords.... The volatile keyword is mostly used to indicate that a member variable
Tutorials   
Java Spring Hibernate Struts Training Retrieve database from the table dynamically in jsp from oracle using servlet What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized

Ads

 
Advertisement null

Ads