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
Can I have multiple main methods in the same class?
What is the java api?
what about jdb and javadoc by example ?
How many types of jdk are there?
What is setstring method in java?
Can java program run without jdk?
In hibernate what is the difference between the Session and SessionFactory?
What is lambda value?
What are jpa repositories?
How do you check if java is installed on windows command prompt?
Is java a framework?
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class
What is spliterator in java se 8?
What is difference between map and flatmap in java 8?
Why do we only use the main method to start a program?