Introduction to AWT and Applets · Introduction to Java Programming

Uses of Applets

Watch lectures

Uses of Applets

1. What Were They For? (beginner history!)

Before JavaScript matured, applets brought live programs to web pages: animations, calculators, games, charts! Write once, run in any browser (with plugin!).

2. Classic Uses (exam list!)

Use Example
Animations bouncing ball, scrolling banner!
Calculators / forms loan EMI calc inside page!
Games puzzles, tic-tac-toe!
Charts live stock graph!
Education typing tutor, simulations!

3. Tiny Example — Click Game Idea

// Applet game sketch: click dots for points!
public void mouseClicked(MouseEvent e) { score++; repaint(); }
public void paint(Graphics g) { g.drawString("score=" + score, 20, 20); }

4. Why Dead? (viva must-know!)

Security holes (sandbox escapes!) + slow plugin + no mobile + JavaScript/HTML5 won! Browsers removed NPAPI (~2015-18). Applets deprecated (Java 9+)!

5. Exam Points

  • 4-5 uses + example — 5 marks, frequent.
  • Why obsolete (security + JS) — 3 marks, frequent viva.
Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Introduction to Java Programming modules