A Java applet is a small application written in the Java programming language that can be embedded in a web page. It runs inside the web browser and works at client side.
An example of a Java applet is an animation or a game that can be played within a web page. Another example is a calculator, which can be used to perform calculations within a web page.