Index

Symbols

_ in numeric literals, 108

... variable arity argument

See varargs

< > type parameter delimiters, 117, 123

<?> unbounded wildcard type, 120

A

abstract classes

designing for inheritance, 97

vs. interfaces, 99103

noninstantiability and, 19

subclassing, and equals, 45

access control mechanisms, 74

access levels, 7377

module-level, 7677

of readResolve, 362

rules of thumb for, 7475

of static member classes, 112

access modifiers, 74

accessor methods, 78

defensive copies and, 80, 233

for failure-capture data, 297, 307

immutability and, 80

naming conventions for, 291292

vs. public fields, 7879

for toString data, 57

actual type parameters, 117

Adapter pattern, 23, 101, 113

aggregate types vs. strings, 276

alien methods, 317

annotations, ...

Get Effective Java, 3rd 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.