|
byte ---> short ---> int ---> long
|
int i;
short s;
byte b;
The Java COMPILER translating the following assignment statements
in a high level language will **automatically** use
"EXT" assembler instructions:
|
How to run the program:
|
|
|
|
short s; byte b; |
int i;
short s;
byte b;
The Java COMPILER truncate the representaion
**ONLY** if you **beg** for it:
|
How to run the program:
|
How to run the program:
|
|
Example:
byte b; // A byte type variable can store values: -128 to 127
short s;
|
Explanation:
|
How to run the program:
|
|