Answer Posted / 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 |
Post New Answer View All Answers
Why java is better than node.js?
Can you compile java into exe?
What is java aop?
What is meant by code profiling?
What is the difference between map and flatmap in java?
What is the point of lambda expressions?
What is an actionevent in java?
What is meant by framework in java?
Why is class forname used in java?
Can a method be static and synchronized?
What are messages in java?
What is an entity in java?
Do I need jdk or jre?
what is the package for freshers in valuelabs.
What is static class in java?