Which Statement are true? 3 choices - ProProfs Discuss
Topics
Products
Follow Us:

Which Statement are true?- 3 choices



A. The race conditions can be avoided by using synchronized blocks
B. The race conditions occur due to 2 or more threads sharing same data or reading and writing the share data simultaneously
C. A Synchronized block is nothing but a statement or block of code qualified by synchronized keyword
D. The Lock in synchronized block is based on the method and not on the object
E. A lock allows multiple threads to access the code

This question is part of GAJ Quiz for Aptech
Asked by Vietha, Last updated: Dec 18, 2019

+ Answer
Request

1 Answer

vietha

Vietha

Answered Mar 02, 2019

The race conditions can be avoided by using synchronized blocks
The race conditions occur due to 2 or more threads sharing same data or reading and writing the share data simultaneously
A Synchronized block is nothing but a statement or block of code qualified by synchronized keyword
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.