Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primitive data types the same as J2SE???

 
George Kalfas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey to you all!!

I'm wondering if the primitive types of Java Micro are the same ( in terms of range and byte size ) as traditional java (a.k.a. int 4 bytes, double 8 bytes etc...). I'm talking about the CLDC 1.1 configuration which supports floating points.
I've searched the CLDC documentation and found out that for instance floating data types follow the IEEE 754 configuration which is the same that J2SE follows. To my mind this means that the primitive data types are the same in both J2ME and SE.
Anybody can confirm that???

Thank you all in advance!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18092
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the primitives are the same. Actual internal binary storage may vary, since the CPUs involved are different, but the action at the Java level is identical to the standard JVM for primitives.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic