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
What is binary tree in java?
How much ram can a 64 bit processor theoretically?
Mention a package that is used for linked list class in java.
Does collectionutils isempty check for null?
What is method in java ?
How do you use compareto in java?
Why synchronization is important?
How many days will it take to learn java?
What is a singleton class in Java?
explain local datetime api in java8?
What is the difference between comparison done by equals method and == operator?
Explain working of call by reference function invoking.
You're given a Boolean 2D matrix, can you find the number of islands?
Can we assign null to double in java?
What is the old name of java?