Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me what is the use of the keyword "synchronized" and what does it means?

1 Answer

0 votes
by (26.7k points)

Basically, synchronized helps you to ensure that threads can able to access the variable in an atomic way. Sometimes, threads can make half changed, in able to prevent this we use "synchronized" keyword.

I hope this will help.

Want to know more about Java? Prefer this tutorial on Learn Java.

Want to become a Java expert? join Java Certification now!!

Related questions

0 votes
1 answer
asked Mar 22, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
0 votes
1 answer
asked Mar 8, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

Browse Categories

...