Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the need for an applet?

 
mara thamizhan
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can anybody say what is the need for an applet when it has many drawbacks

like it can be transmitted from only server to client(one-way communication)

Also it has many restrictions !

Do we still need applets when servlets have come?

cheers!
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets haven't replaced applets. Servlets run server-side, and applets run client-side.
 
Ramen Chatterjee
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets provide:

Rich interfaces (running in a browser, easy to distribute)
Sandbox security (assurance for users)
Client side processing (reduces network load if a distributed application)

Regards

Ramen
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the truth is that applets aren't used all that much. When they were introduced, none of the other client-side active content options existed: JavaScript (introduced in the same version of Netscape that included Java for the first time), Flash, etc. Nowadays they are used for things like visualization demos, and occasionally in enterprise client-server apps; but the other alternatives are often better.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic