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

Write the algorithm to check the number non-leaf nodes in a tree.

583


List out benefits of object oriented programming language?

476


Does garbage collection occur in permanent generation space in jvm?

600


How do you do exponents in java?

534


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

535






Is 0 an irrational number?

596


What is the name of the java compiler?

514


Difference between object and reference?

676


How do you check if an arraylist is not empty?

570


What is classes in java?

515


Why do we use string?

571


What is difference in between java class and bean?

560


How many threads can I run java?

536


What is meant by interface?

559


What is charat java?

536