• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads and Applets

 
usha nataraj
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Give me a typical scenario in application development, when you use
a) Thread
b) Applet.

thanks,
usha.
 
Darin Niard
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5093
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can even have a situation in which you want to do both
 
Tom Hill
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic