Hi,
I'm a java noob. Wanted to know if all J2SE
classes are available in J2ME
. If not why is it so?
Thanks
Hi,
I'm a java noob. Wanted to know if all J2SE
classes are available in J2ME
. If not why is it so?
Thanks
No, only a subset is available, see http://java.sun.com/javame/technology/index.jsp for an introduction.
No, J2ME is a significantly restricted subset of J2SE. J2SE is an enormous standard library, and most of the devices J2ME is intended to run on don't have the resources to support all that overhead.
Take a look at the javadocs for CLDC 1.1, the main, universally supported API accessible to J2ME.
No they are not. The reason for this is the standard library is quite large, making it difficult to use on embedded devices with small amounts of memory and slower processors.
See this page for more info about whats included and whats not.
It's worth noting that where J2ME versions of J2SE classes are apparently available, they often have a reduced API. So you can't always assume that code using 'available' classes will port straight over.
If memory serves, there are one or two methods with differening names too. Memory doesn't serve well enough right now to recall a specific example.