• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Two IO Package

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I had recently faced an interview in one compnay for j2me.
They asked me why there is two IO Package in j2me

Java.io.*;
javax.microedition.io.*;

what should be technical answer for this?
Please tell me


Thanx
waiting for reply
 
James Reilly
wrangler
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CLDC provides the 'Generic Connection Framework' (GCF). The GCF is a generic, extensible IO framework for resource constrained devices. The 'javax.microedition.io' classes and interfaces in CLDC provide the GCF.
MIDP also provides support on top of CLDC's GCF interfaces and classes:
like javax.microedition.io.HttpConnection.

The 'java.io' classes arose in J2SE. J2ME tries to be as compatible
as possible with J2SE (to the extent possible in resource constrained
devices). Some java.io interfaces and classes are therefore also used
by CLDC, java.io.InputStream/OutputStream, java.io.Exception, etc.

(And it's maybe worth mentioning that CDC is generally
much closer to J2SE than CLDC.)
[ July 07, 2004: Message edited by: James Reilly ]
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanx! Is there anybody else who can give more calrification or detail explanation on this. Or give me some Ref. Sites where i can get this information.

thanx
waiting for reply.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I thought James explanation was as detail as you can get.

Basically there is the new io package for the GCF, and they needed to use a few classes from the J2SE io package, and that is why. Instead of reinventing the wheel they just borrowed those few classes.

Mark
 
Laukik Watve
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishwas,

Which company did you interview for ? How is the J2ME job market ?

-kiks
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Laukik,


Hey! I am from India (bangalore), Here J2me is really hot or any java Technologies (Obvious). But tell me about you where are u from? And hos' market there.

Waiting for reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic