Comment on Tutorial - wait(), notify() and notifyAll() in Java - A tutorial By Jagan
Comment Added by : sumit
Comment Added at : 2014-10-30 08:14:55
Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
You are using "this" to start to the thread before constructor has completed. Isn't it a wrong practice to use incompletely initialize objects by letting them escape before constructor completes-
Producer(Q q) {
this.q = q;
new Thread(this, "Producer").start();
}
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. the best site i have found so far for clearing my
View Tutorial By: darkknight at 2013-06-05 05:54:10
2. thank you so much i satisfied for the tutorial in
View Tutorial By: flick at 2010-09-24 21:10:59
3. What is transient keyword in Java?
View Tutorial By: Mohit at 2010-11-18 00:26:24
4. Thanks ! I found it very useful !
View Tutorial By: Rownak Ehsan at 2008-04-29 00:50:10
5. how can i give me a assign value to mutldimentiona
View Tutorial By: shinde datta at 2013-01-12 10:41:15
6. Good explanation about Iterator. But Object declar
View Tutorial By: Prasad at 2008-12-22 23:20:59
7. To execute program you need comm.jar that is not a
View Tutorial By: shreyansh shah at 2012-07-11 05:57:42
8. You know what will be usefull if we can use this
View Tutorial By: mechkid at 2012-12-03 14:54:41
9. Thanks for the info
View Tutorial By: info at 2010-01-31 12:17:58
10. welll program runs but fails at the statement wher
View Tutorial By: Aman Aggarwal at 2009-03-22 22:42:52