This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Threads and Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Threads and Applets" Watch "Threads and Applets" New topic

Threads and Applets

usha nataraj

Joined: Jul 21, 2004
Posts: 6
Give me a typical scenario in application development, when you use
a) Thread
b) Applet.


Thanks 'n Regards,<br />UshaRaju.
Darin Niard
Ranch Hand

Joined: Jun 08, 2004
Posts: 118
a) When you have a need to do multiple things at once.
b) When you want your program embedded in a web page.

Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
you can even have a situation in which you want to do both

Tom Hill
Ranch Hand

Joined: Aug 24, 2003
Posts: 115
a) A clock that runs in the background of your application which does something completely different. eg have two things running at once. (probably as a DeamonThread).

b) Remember that the terms Applet and Application are different things! An applet is a method of distributing the program you have written on Webpages.
It is sorta covered in the JavaRanch Style Guide.
subject: Threads and Applets