What are Transient and Volatile Modifiers?
Answer Posted / janet
Transient: The transient modifier applies to variable only
and it is not stored as part of it's objects persistent
state.Transient variables are not serialized.
Volatile: Volatile modifier applies to variables only and
it tells the compiler that the variable modified by
volatile can be changed unexpectedly by other parts of the
program.
| Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
Which non-unicode letter characters may be used as the first character of an identifier?
Can you instantiate the math class?
What is an argument java?
Convert a BST into a DLL and DLL to BST in place.
What is hash table in java?
What is command line argument
Can constructor be inherited?
What happens if I remove static from main method?
What is the Scope of Static Variable?
How do you find the absolute value?
What is the difference between dom and sax parser in java?
How do you generate random numbers in java?
Which of the classes will have more memory allocated?
What is static variable with example?
What are basic keywords?