adspace


What is the use of Synchronized keyword?

Answer Posted / Deepak Kumar Singh

The Synchronized keyword in Java is used to ensure that only one thread can access a method or a block of code at a given time, preventing multiple threads from accessing and modifying shared resources simultaneously, which could lead to inconsistencies or errors.n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what's the latest ram lunch?

2730


How to take backup using active directory recyclebin concept

2337


please prodide me nvidi placement papers

2651


Can anybody send me Excel tips and improtant formul...... please.

2113