This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes About thread and annonumous inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "About thread and annonumous inner class" Watch "About thread and annonumous inner class" New topic
Author

About thread and annonumous inner class

Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

What is wrong here?

I couldn't point out it.



Thanks in Advanced!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18500
    
  40


What is it about the error message (obviously compile error) that confuses you? We can't elaborate the message, if you don't tell us what the confusion is.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Henry Wong wrote:
What is it about the error message (obviously compile error) that confuses you? We can't elaborate the message, if you don't tell us what the confusion is.

Henry


This is the Error message:

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Abimaran Kugathasan wrote:What is wrong here?

I couldn't point out it.



Thanks in Advanced!


Try this:


The problem is: Thread#start() does not return anything.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#start%28%29


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Neha Daga
Ranch Hand

Joined: Oct 30, 2009
Posts: 504
I am late by 5 mins but what minhaj says is true. start() returns nothing and you are assigning that nothing to a Thread object which is incompatible.


SCJP 1.6 96%
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

yea... Thanks... I forgot...

Thanks to all.......
 
Don't get me started about those stupid light bulbs.
 
subject: About thread and annonumous inner class
 
Similar Threads
about synchronized keyword
anonymous class
Synchronizing Static Methods
Concurrency with 2-cores-CPU
Anonimouse Class.