Prev Next

Java / Modifiers

What happens when a main method declared as synchronized?

When main() declared as synchronized, no two threads can access the main() at the same time.

More Related questions...

Show more question and Answers...


Comments & Discussions