Java Reference
In-Depth Information
Changes to java.lang.String and java.lang.StringBuffer
The key difference between these classes in Java SE and the CLDC is that CLDC 1.0 omits
the methods that take floating-point arguments.
Changes to the java.util Package
Table 2-3 lists the supported classes in the java.util package.
Table 2-3. java.util Classes Supported by CLDC Version
CLDC 1.0
CLDC 1.1
Calendar
Calendar
Date
Date
EmptyStackException
EmptyStackException
Enumeration
Enumeration (interface)
Hashtable
Hashtable
NoSuchElementException
NoSuchElementException
Random
Random
Stack
Stack
Timer
Timer
TimerTask
TimerTask
TimeZone
TimeZone
Vector
Vector
Changes to Collections
The Java SE Collections API is a shadow of its former self, but the most-used collections—
vectors, hashtables, and stacks—still remain.
Changes to Time Utilities
The CLDC time APIs are considerably streamlined as well. The notion of date formats is
hidden entirely, having been wrapped in UI classes provided by the MIDP; the only facili-
ties provided let you manage instances in time ( Date ) and time zones ( TimeZone ). Calendar
provides the ability to get the current calendar, a millisecond timer, and other utilities.
 
Search WWH ::




Custom Search