您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 33

Whole number types

Java offer ways to represent and work with 4 different types of whole number. The only difference between them is the range of values they can represent.

The four whole number types are:

  • int
  • byte
  • short
  • long

For most of your programs you will probably find that the int type is sufficient.

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg