Difference between java and java applets?

Java is a programming language and an environment to run compiled java programms.

A Java applet is a special constrained type of Java programm which is designed to run in a web browser.

It has less rights than a normal Java programm and is usually smaller.