A.1. Operator Precedence

Operators are shown in decreasing order of precedence from top to bottom (Fig. A.1).

Figure A.1. Operator precedence chart.

Operator

Description

Associativity

++

unary postfix increment

right to left

--

unary postfix decrement

 

++

unary prefix increment

right to left

--

unary prefix decrement

 

+

unary plus

 

-

unary minus

 

!

unary logical negation

 

~

unary bitwise complement

 

( type )

unary cast

 

*

multiplication

left to right

/

division

 

%

remainder

 

+

addition or string concatenation

left to right

-

subtraction

 

<<

left shift

left to right

>>

signed right shift

 

>>>

unsigned right shift

 

<

less than

left to right

<=

less than or equal to

 

>

greater than

 

>=

greater than or equal to

 

instanceof

type comparison

 

==

is equal to

left to right

!=

is not equal to

 

&

bitwise AND

left to right

 

boolean logical AND

 

^

bitwise exclusive OR

left to right

 

boolean logical exclusive OR

 

|

bitwise inclusive OR

left to right

 

boolean logical inclusive OR

 

&&

conditional AND

left to right

||

conditional OR

left to right

?:

conditional

right to left

=

assignment

right to left

+=

addition assignment

 

-=

subtraction assignment

 

*=

multiplication assignment

 

/=

division assignment

 

%=

remainder assignment

 

&=

bitwise AND assignment

 

^=

bitwise exclusive OR assignment

 

|=

bitwise inclusive OR assignment

 

<<=

bitwise left shift assignment

 

>>=

bitwise signed-right-shift assignment

 

>>>=

bitwise unsigned-right-shift assignment

 


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



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

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