• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MIDP and CLDC APIs

 
Sanjay Mistry
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I took a close look at MIDP and CLDC APIs............!
Both have following pakckages in common:
1. java.io
2. java.lang
3. java.util
4. javax.microedition.io

Why these pakckages are common to both, while one sits on top of the other.
This generates another question, when I use java.lang.String class in my midlet, which class is being loaded, I mean the one which is in CLDC or in MIDP !
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MIDP is a profile that is built on top of the CLDC. So any classes defined by the CLDC are automatically included in the MIDP. So there is just one version of java.lang.String, the one defined by the CLDC.
------------------
Eric Giguere
author of:
Java 2 Micro Edition : A Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic