What is Transient and volatile

Answer Posted / ravikiran

Transient variable is used to make the variable out of
synchronization.
Volatile variable is used when the variable is changing
it's state continuously

Is This Answer Correct ?    1 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a method is declared as protected, where may the method be accessed?

535


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1824


What is the difference between equals() and?

589


How can you write a loop indefinitely in java programming?

554


What is == mean?

553






What is hashing principle in java?

552


Can inner class have constructor?

550


What is the current version of java?

545


What is java object name?

551


What is the return type of the main method?

577


What are the main differences between the java platform and other platforms?

531


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

535


What are void pointers?

714


Which is the best sorting technique in java?

527


Is vector ordered in java?

540