what is transient variable?
Answers were Sorted based on User's Feedback
Answer / p.a.v.k.prasad
Transient variable is an variable, that can't be stored in permanent(hard disk)
Ex:-
int a=10; // it is permenently stored in hard disk
transient String password; //it is not persisted
if u create a Student class and it contains Sno,SName,Marks;
u don't want to serilize the marks. then use Transient to that field.
In real time transient varibles are used banking application
because never stored account holder passwords.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / srinu
suppose A varible never participate in serilization process
that varible declared as a keyword transient.
Ex:- transient String password;
In real time transient varibles are used banking application
because never stored account holder passwords.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / prasad
Transient variable is a variable that can't serializable
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / mithun ray
Transient variable is a variable that can't
serializable,means if you dont want to parsistent any object
or part of an object you can use transient object.
Ex:- transient String password;
In real time transient varibles are used banking application
because never stored account holder passwords.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is jdk for netbeans ide?
What is the difference between map and flatmap in java?
What is tier in java?
What is cmp in java?
I get an exception if I remove the static modifier from main?
What is a uint8?
How do I enable java in firefox?
Is java a framework?
explain isalive() method under thread class?
Is jvm a compiler or an interpreter?
What is meant by java se?
how ahstraction is the property of oops,this is also in c and c++ ex. printf function which is also hide the unnecessary data,so what is the difference ? and does c++ fallow the abstraction?