Appendix D. Primitive Types

Figure D.1. Java primitive types.

Type

Size in bits

Values

Standard

boolean

 

true or false

 

[Note: A boolean's representation is specific to the Java Virtual Machine on each platform.]

char

16

'u0000' to 'uFFFF' (0 to 65535)

(ISO Unicode character set)

byte

8

128 to +127 (27 to 27 1)

 

short

16

32,768 to +32,767 (215 to 215 1)

 

int

32

2,147,483,648 to +2,147,483,647 (231 to 231 1)

 

long

64

9,223,372,036,854,775,808 to
+9,223,372,036,854,775,807 (263 to 263 1)

 

float

32

Negative range:
3.4028234663852886E+38 to
1.40129846432481707e45
Positive range:
1.40129846432481707e45 to
3.4028234663852886E+38

(IEEE 754 floating point)

double

64

Negative range:
1.7976931348623157E+308 to
4.94065645841246544e324
Positive range:
4.94065645841246544e324 to
1.7976931348623157E+308

(IEEE 754 floating point)

For more information on IEEE 754 visit grouper.ieee.org/groups/754/. For more information on Unicode, see Appendix F, Unicode®.

Introduction to Computers, the Internet and the World Wide Web

Introduction to Java Applications

Introduction to Classes and Objects

Control Statements: Part I

Control Statements: Part 2

Methods: A Deeper Look

Arrays

Classes and Objects: A Deeper Look

Object-Oriented Programming: Inheritance

Object-Oriented Programming: Polymorphism

GUI Components: Part 1

Graphics and Java 2D™

Exception Handling

Files and Streams

Recursion

Searching and Sorting

Data Structures

Generics

Collections

Introduction to Java Applets

Multimedia: Applets and Applications

GUI Components: Part 2

Multithreading

Networking

Accessing Databases with JDBC

Servlets

JavaServer Pages (JSP)

Formatted Output

Strings, Characters and Regular Expressions

Appendix A. Operator Precedence Chart

Appendix B. ASCII Character Set

Appendix C. Keywords and Reserved Words

Appendix D. Primitive Types

Appendix E. (On CD) Number Systems

Appendix F. (On CD) Unicode®

Appendix G. Using the Java API Documentation

Appendix H. (On CD) Creating Documentation with javadoc

Appendix I. (On CD) Bit Manipulation

Appendix J. (On CD) ATM Case Study Code

Appendix K. (On CD) Labeled break and continue Statements

Appendix L. (On CD) UML 2: Additional Diagram Types

Appendix M. (On CD) Design Patterns

Appendix N. Using the Debugger

Inside Back Cover

show all menu



Java(c) How to Program
Java How to Program (6th Edition) (How to Program (Deitel))
ISBN: 0131483986
EAN: 2147483647
Year: 2003
Pages: 615
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net