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
Related Tutorials
Java program to get location meta data from an image
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
Archived Comments
1. very good
View Tutorial By: Deepika at 2012-03-26 07:00:29
2. the DomParserExample.java shows MAlformedURLExcept
View Tutorial By: dipesh at 2011-12-09 09:53:46
3. very nice and good introduction for beginners.
View Tutorial By: annie at 2011-11-23 06:50:32
4. it is really BEST answer of my question.
MR
View Tutorial By: Ramesh genwa at 2010-09-09 07:15:37
5. This is starting program for me in j2me.This will
View Tutorial By: Surya at 2010-07-26 03:29:47
6. How to write data from keyboard to a file in java?
View Tutorial By: Ashish Ranjan at 2011-07-13 01:04:38
7. very usefull article............ thanks to the aut
View Tutorial By: runa at 2010-10-16 08:43:38
8. the ans is good.now i cleared my dout.and the exam
View Tutorial By: siva at 2011-12-07 14:00:13
9. i want some more info to make my final project.
View Tutorial By: Arshid saeed at 2010-02-18 08:18:45
10. can u plz gimme a program in arrays for a student'
View Tutorial By: hayati at 2013-12-05 14:45:27