38. Syncronized can be applied over - 1) a method block 2) a block with in method or static block outside method 3) at class level 4) at member variable level a.1 & 2 b.3 & 4 c. 1& 4 d. all
Answers
Answer:
Synchronized in Java
Multi-threaded programs may often come to a situation where multiple threads try to access the same resources and finally produce erroneous and unforeseen results.
So it needs to be made sure by some synchronization method that only one thread can access the resource at a given point of time.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
Explanation:
Please Mark me as Brainliest
Answer:
I don't no
Explanation:
plz mark me on brainlist