Java-enabled phones typically run on J2ME — short for Java 2 Micro Edition. It's the lightweight version of Java designed specifically for mobile devices with limited resources.
Here's the technical bit: standard Java applications rely on the JVM (Java Virtual Machine) to generate bytecode, but Java mobile applications use the KVM (Kilobyte Virtual Machine) instead. The reason comes down to size — the KVM occupies only a tiny amount of memory, which makes it easy to embed inside a phone without bogging down the hardware.