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 are the steps in the jdbc connection?
How java enabled high performance?
What is a string what operation can be performed out with the help of a string?
What is the program compilation process?
What is io stream in java?
worst case complexities of Quick sort and Merge sort.
how can you take care of mutual exclusion using java threads? : Java thread
Is it possible for yielded thread to get chance for its execution again ?
What is the locale class in java programming?
explain the concept of virtual method invocation in polymorphism in detail?
Why we used vector class?
Is void a data type in java?
What is boolean data type in java?
When should a function throw an exception?
Will the jvm load the package twice at runtime?