SIM cards are self-contained computers featuring their own 30mhz CPU, 64kb of RAM, and some storage space. They are designed to run "applets" written in a stripped down form of Java.