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. cout<<5+"object orinted programming
View Tutorial          By: SANDEEP SHARMA at 2011-09-18 19:06:57

2. hey...i have a problem getting the system date in
View Tutorial          By: angel at 2010-04-03 09:27:38

3. What is the use of "SMSConnector" in thi
View Tutorial          By: Mudra at 2010-06-04 15:04:55

4. Its super explanation
View Tutorial          By: jose at 2011-12-08 13:36:29

5. thanx a lot.............!!!! u r best..........
View Tutorial          By: Pratik at 2010-04-12 12:41:30

6. it is very easy to understand to the learners.
View Tutorial          By: venkat at 2010-06-19 02:37:36

7. This code works for me. But i have a doubt how to
View Tutorial          By: Daya at 2015-05-04 12:04:19

8. thks for help...
View Tutorial          By: Peps at 2010-01-05 02:34:15

9. This is the helpful Site for beginner....!!!!!!!!!
View Tutorial          By: Anup at 2013-07-26 13:40:49

10. Hi
I tried to use this class , I don't get

View Tutorial          By: arnav at 2015-03-27 06:01:22