answersLogoWhite

0

Synchronized Methods are methods that have the keyword synchronized in the method signature.

Synchronized statements are pieces of java code that are surrounded by brackets which have the keyword synchronized qualifying them.

Both cases mean that - only one thread will be able to access the method or the statement that is synchronized

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
More answers

Synchronized Methods are methods that have the keyword synchronized in the method signature.

It means that - only one thread will be able to access the method that is synchronized

User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What are the synchronized methods and synchronized statements in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp