The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Java Mobility Podcast 20: Mobile AJAX
Subject:  Thankss
Date:  2008-05-20 10:41:03
From:  xxmhazi


(Stupid answer)
Threads are just another class in java!

You can call do all that you want to do to a normal class. However, if you want to have your own thread to do something oyun without affecting the calling thread - then you do a start() on your thread - this inturn calls the run() oyun method which is the entry-point to your class (similar to the main() method being the entry point to a program).

From this entry point do whatever you want to do - create objects, call methods, etc. So that the stuffs here are executed on your new thread.
For instance, oyunlar you can create your Object and call the 3 methods in sequence within the run() method.

 Feed java.net RSS Feeds