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
Is arraylist zero based?
Why are there no global variables in java?
Explain jdk, jre and jvm?
Difference between this() and super() in java ?
What is java util list?
How do you add an element to a set in java?
What is a layout manager and what are different types of layout managers available in java awt?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Is age a discrete variable?
Why we do exception handling in java and how many types of exceptions are there?
What is the difference between a break statement and a continue statement?
Is ++ operator thread-safe in java?
what do you mean by classloader in java?
How java enabled high performance?
What is meant by oops concept in java?