Appendix B. Useful Tables

 

How many seconds are there in a year? If I tell you there are 3.155×107 you won't even try to remember it. On the other hand, who could forget that, to within half a percent, π seconds is a nanocentury?

 
 --Tom Duff, Bell Labs

Table 1. Keywords

NOTE: Keywords marked with † are unused

abstract

continue

for

new

switch

assert

default

goto

package

synchronized

boolean

do

if

private

this

break

double

implements

protected

throw

byte

else

import

public

throws

case

enum

instanceof

return

transient

catch

extends

int

short

try

char

final

interface

static

void

class

finally

long

strictfp

volatile

const

float

native

super

while

Table 2. Operator Precedence

Operator Type

Operator

Postfix operators

[] . (params) expr++ expr--

Unary operators

++expr --expr +expr -expr ~ !

Creation or cast ...

Get THE Java™ Programming Language, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.