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 the size of boolean variable?
Explain method local inner classes ?
What is meant by object oriented programming – oop?
Explain the difference between an Interface and an Abstract class?
Should a main method be compulsorily declared in all java classes?
Does treeset allow null in java?
Explain the features of interfaces in java?
How do you use parseint in java?
What is the difference between access specifiers and access modifiers in java? 16
What is difference between fileinputstream and filereader in java?
What are the 5 types of research methods?
Can we write class inside a class in java?
How do you remove an object from an arraylist in java?
What is difference between string and new string?
List out five keywords related to exception handling ?