物件導向程式設計

 

 

      2.1.Java基本資料型態(Data Type)

 

 


授課教師:陳慶瀚

WWW : http://www.miat.ee.isu.edu.tw/java

E-mail : pierre@isu.edu.tw   

 


2.1.Java基本資料型態(Data Type)

 


whole numbers
 
 
 
Type 
Size/Format	
Description
byte
8-bit two's complement
Byte-length integer
short
16-bit two's complement
Short integer
int
32-bit two's complement
Integer
long
64-bit two's complement
Long integer
 
real numbers
 
 
Type 
Size/Format	
Description
float
32-bit IEEE 754
Single-precision floating point
double
64-bit IEEE 754
Double-precision floating point
 
other types
 
 
Type 
Size/Format	
Description
char
6-bit Unicode character
A single character
boolean
true or false 
A boolean value (true or false)

 

 

物件導向程式設計

義守大學電機系 陳慶瀚

2001.10.02