What is Transient and volatile

Answer Posted / deepak divvela

1.transient variables can not be serialized.
2.volatile variables may change with the affect of other one

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between assignment and initialization?

567


Write a code to create a trigger to call a stored procedure

542


How to create a custom exception?

584


Outline the major features of java.

577


What about interthread communication and how it takes place in java?

553






What are features of java?

568


What is static data type in java?

557


How can you avoid serialization in child class if the base class is implementing the serializable interface?

646


Is there a way to increase the size of an array after its declaration?

606


What is composition in java?

734


Why java is said to be pass-by-value ?

557


What is substring in java?

625


How do you include a string in java?

532


Is c better than java?

552


What Is Composition?

593