MIDP encompasses the four core CLDC packages (java.lang, java.io, java.util, and javax.microedition.io), plus the following three MIDP-specific packages:
javax.microedition.lcduijavax.microedition.midletjavax.microedition.rms
We will detail each of the MIDP-specific packages later in this section. In addition to the above new packages, MIDP also adds four new classes, shown below, to the core CLDC packages.
java.util.Timer -- Used to schedule tasks for future execution in a background thread.
java.util.TimerTask -- Used by the java.util.Timer class to define tasks for later execution in a background thread.
javax.microedition.io.HttpConnection -- An interface that defines the necessary methods and constants for an HTTP connection.
java.lang.IllegalStateException -- A RuntimeException that indicates that a method has been invoked at an illegal or inappropriate time.