What is the need of transient variables in Java ?
Answer / Jitendra C Kanaujia
Transient variables are used in Java to prevent certain fields from being serialized (i.e., written to a file or sent over a network). This can be useful for fields that should not be persisted, such as volatile instance variables that change frequently, temporary data, or sensitive data like passwords.
| Is This Answer Correct ? | 0 Yes | 0 No |
watz the difference between abstract class and interface? Which one u ill choose as a designer?
What are selection structures?
Which package is used for pattern matching with regular expressions?
Which software is used for java programming?
Which is faster set or list in java?
What do you mean by boolean?
What are the basics of core java?
Explain the inheritance?
How does multithreading take place on a computer with a single cpu?
What is the use of arraylist in java?
What is difference between static class and normal class?
What is difference in between java class and bean?