O'Reilly logo

Java Card™ Technology for Smart Cards by Zhiqun Chen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required