What is the difference between Synchronizing mehtod &
Synchronizing block?
Answer Posted / anjani kumar jha
In syncronizing block the object is locked.
In Syncronozing the method the method is
locked........means only one at a time only one thread can
use that method.
Thanks and Regards
Anjani Kumar Jha
9623154095
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Why heap memory is called heap?
Which is better stringbuffer or stringbuilder?
What is the benefit of inner / nested classes ?
Why is sizeof not a function?
What is integer valueof?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is use of arraylist in java?
how we can create packages in java?
Does string is thread-safe in java?
In java, how we can disallow serialization of variables?
Can classes declared using the abstract keyword cab be instantiated?
What is a java string?
What is entry set in java?
If a method is declared as protected, where may the method be accessed?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.