my dog learned polymorphism
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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.
I agree. Here's the link:
subject: Threads and Applets
It's not a secret anymore!