6 years ago in Java Multithreading

Which of the following is used to force each thread to reconcile its working copy of a variable with the master copy in main memory?

[A] synchronized
[B] transient
[C] volatile
[D] native
Loading...
Next Question

Overall Stats

Attempted 271
Correct 50
Incorrect 103
Viewed 118

Answers

Guest
Guest
atish lohade
atish lohade - 2 months ago

atish lohade from Aurangabad, India is saying volatile is correct answer

Didier MUNEZERO
Didier MUNEZERO - 2 months ago

Didier MUNEZERO from Kigali, Rwanda is saying synchronized is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying synchronized is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying synchronized is correct answer

yusuf husen
yusuf husen - 3 months ago

yusuf husen from Adama, Ethiopia is saying transient is correct answer

Related Questions

What will happen if two thread of same priority are called to be processed simultaneously?

  • [A] Any one will be executed first lexographically
  • [B] Both of them will be executed simultaneously
  • [C] None of them will be executed
  • [D] It is dependent on the operating system.

Thread priority in Java is?

  • [A] Integer
  • [B] Float
  • [C] double
  • [D] long