I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
kamani srinivasarao,<br />HCL Technologies Limited<br />Chennai-India.
Originally posted by srinivasarao kamani:
Better approach is
implement the "Runnable" interface.
and then pass this as a target to the
one of the Thread constructors.
SCJP2. Please Indent your code using UBB Code
Kaustubh. Mumbai, India.
Originally posted by Kaustubh Patil:
Here there is no interaction between the run method and the class members, because the run method from the parent class is used. i.e. if you want to access your class members inside the run method it cannot be done, unless you override the method in the parent Thread class.
"I'm not back." - Bill Harding, Twister
The first case rarely happens in real life