<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Find Answers For ... - Recent questions tagged synchronization</title>
<link>https://find4answers.com/tag/synchronization</link>
<description>Powered by Question2Answer</description>
<item>
<title>Can we synchronize static method/variable in a Java class?</title>
<link>https://find4answers.com/69/can-we-synchronize-static-method-variable-in-a-java-class</link>
<description>&lt;h1&gt;
	Can we synchronize static method/variable in a Java class?&lt;/h1&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/69/can-we-synchronize-static-method-variable-in-a-java-class</guid>
<pubDate>Mon, 16 Jul 2012 06:42:41 +0000</pubDate>
</item>
<item>
<title>How to Synchronize the HashMap ?</title>
<link>https://find4answers.com/66/how-to-synchronize-the-hashmap</link>
<description>How to Synchronize the HashMap ?</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/66/how-to-synchronize-the-hashmap</guid>
<pubDate>Fri, 27 Apr 2012 08:45:24 +0000</pubDate>
</item>
<item>
<title>What will happen when you attempt to compile and run the following code?</title>
<link>https://find4answers.com/30/what-will-happen-when-you-attempt-compile-and-following-code</link>
<description>&lt;pre&gt;
What will happen when you attempt to compile and run the following code?


public class WaNot{
int i=0;
public static void main(String argv[]){
        WaNot w = new WaNot();
        w.amethod();
        }
        public void amethod(){
	while(true){
		try{ 
        		wait();
		    }catch (InterruptedException e) {}
		i++;
	    }//End of while

	}//End of amethod
}//End of class&lt;/pre&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/30/what-will-happen-when-you-attempt-compile-and-following-code</guid>
<pubDate>Tue, 15 Nov 2011 09:50:38 +0000</pubDate>
</item>
<item>
<title>Why do you need the wait/notify protocol?</title>
<link>https://find4answers.com/27/why-do-you-need-the-wait-notify-protocol</link>
<description>&lt;p&gt;
	&lt;span style=&quot;font-family: GENEVA, HELVETICA, ARIAL, LUCIDA SANS;&quot;&gt;Write code using synchronized wait &lt;i&gt;notify&lt;/i&gt; and &lt;i&gt;notifyAll&lt;/i&gt; to protect against concurrent access problems and to communicate between threads. Define the interaction between threads and between threads and object locks when executing synchronized wait &lt;i&gt;notify&lt;/i&gt; or &lt;i&gt;notifyAll&lt;/i&gt;.&lt;/span&gt;&lt;/p&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/27/why-do-you-need-the-wait-notify-protocol</guid>
<pubDate>Tue, 15 Nov 2011 08:58:31 +0000</pubDate>
</item>
<item>
<title>Can we make a constructor synchronized?</title>
<link>https://find4answers.com/21/can-we-make-a-constructor-synchronized</link>
<description>Constructor is also a Method, hence can we make constructor also synchronized? Can we add synchronized block inside constructor?</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/21/can-we-make-a-constructor-synchronized</guid>
<pubDate>Tue, 15 Nov 2011 05:13:53 +0000</pubDate>
</item>
<item>
<title>How Synchronization works in Java ? Provide an Example of synchronized block.</title>
<link>https://find4answers.com/16/synchronization-works-provide-example-synchronized-block</link>
<description>&lt;p&gt;
	what is meaning of Synchronization in Jav&lt;b&gt;a&lt;/b&gt;, Why do we need Synchronization in java, what is &lt;b&gt;java synchronized keyword&lt;/b&gt;, &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD12&quot;&gt;example&lt;/span&gt; of using &lt;b&gt;java synchronized &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD7&quot;&gt;method&lt;/span&gt; and blocks&lt;/b&gt; and important &lt;b&gt;points about synchronization in Java&lt;/b&gt;.&lt;/p&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/16/synchronization-works-provide-example-synchronized-block</guid>
<pubDate>Mon, 14 Nov 2011 06:45:00 +0000</pubDate>
</item>
</channel>
</rss>