Comment on Tutorial - wait(), notify() and notifyAll() in Java - A tutorial By Jagan



Comment Added by : Chintan

Comment Added at : 2013-11-21 03:42:32

Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
Hi ,

Since both the methods in the code which implement the Q class are Synchronized.

The threads will never be able to access it concurrently.
So the wait() method will never be called explicitly.

pls Correct me if i am wrong.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Its Very Good Example
View Tutorial          By: Madhu at 2011-08-26 12:11:49

2. Sir I want to information about "how to send
View Tutorial          By: murthy at 2010-02-17 07:15:18

3. Can you mail me the compiled files, Please. Thank
View Tutorial          By: raghav at 2010-09-14 21:23:17

4. you can see this page: http://devlinslab.blogspot.
View Tutorial          By: luis at 2011-11-08 06:46:23

5. Nice one.your example proves that if you are apply
View Tutorial          By: Nisarg pathak at 2015-09-30 17:23:37

6. Thanks , really appreciate
View Tutorial          By: Marlen at 2010-11-23 10:50:29

7. Easy to understand.......
View Tutorial          By: Priya at 2013-02-15 10:55:52

8. i need a source to send and receive SMS through th
View Tutorial          By: morteza at 2010-03-03 01:53:09

9. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

10. I'm getting the following error even after several
View Tutorial          By: Joe85 at 2011-03-18 08:58:04