Chapter 14. Working with int Data Type

The numeric integer types in the Java programming language are byte, short, int, and long, whose values are 8 bits, 16 bits, 32 bits, and 64 bits, respectively. All these types are signed two's-complement integers. Another integer type in the Java programming language is char, whose value is represented as a 16-bit unsigned integer representing a Unicode character.

The Java Card platform does not support types char or long or operations on these types. The int keyword and its 32-bit integer data type are optionally supported. A Java Card virtual machine that does not support int data type rejects programs using that type.

This chapter discusses issues related to using int when writing Java Card applets. It ...

Get Java Card™ Technology for Smart Cards now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.