wpjr2’s Weblog

Artigos e tutoriais úteis

Tipos de Dados em Java: Resumo

Publicado por wpjr2 em Maio 6, 2008

Segue abaixo algumas imagens relacionadas aos tipos de dados presentes na linguagem Java, incluindo seus limites:

Type Range
byte 8-bit signed two’s complement integer (-27 to 27 – 1, inclusive)
short 16-bit signed two’s complement integer (-215 to 215 – 1, inclusive)
int 32-bit signed two’s complement integer (-231 to 231 – 1, inclusive)
long 64-bit signed two’s complement integer (-263 to 263 – 1, inclusive)
char 16-bit unsigned Unicode character (0 to 216 – 1, inclusive)
float 32-bit IEEE 754 single-precision float
double 64-bit IEEE 754 double-precision float
returnAddress address of an opcode within the same method
reference reference to an object on the heap, or null

Deixe um comentário

XHTML: Você pode usar estas tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>