|
Macintosh computers, downloading and installing Java on, 401–404
main display area in final projects, 376–378, 377
main method, 132–134, 133
main threads
defined, 471
purpose of, 332
maintenance
and code duplication, 141
defined, 471
Manager class, 140–141, 143, 143, 151–152
max method, 243
MB prefix, 4
mega prefix, 4
memory, 2–3, 3
for arrays, 109–111, 110
defined, 471
garbage collection for, 114–115
organization of, 4, 4
in SimCom, 6, 6
memory leaks, 114
menu bars, 362
Menu class, 307
menuListener, 355
menus
events from, 355
in final project, 362–365, 362, 364
working with, 305–309, 307–308
MenuTest class, 363–365
method callers, 60, 471
method definitions, 35
MethodLab animated illustration, 61–64, 62
methods, 58
abstract, 182
in API pages, 227, 227
arguments for, 60–64, 62–63
calling, 60, 66–67
deprecated, 228
exercise questions for, 70–71
exercise solutions for, 413–415
final, 180–182
inheritance with, 143
in interfaces, 188–189, 194
main, 132–134, 133
for objects, 126–127, 128
order of execution, 68
overriding, 152–153, 152
polymorphism with, 65–66, 155–156
references to, 112–114, 113
return types for, 60–61, 64–65
scope of, 68–69
static, 130–132
structure of, 58–61
min method, 243
minus signs (-)
in compound assignment, 51
for subtraction, 37
as unary operator, 44
modal dialog boxes
characteristics of, 366
defined, 471
modulo operation
defined, 471
operator for, 42
Monospaced fonts, 285
multi-line comments, 36
multidimensional arrays
defined, 471
working with, 106–108, 106, 108–109
multiple catch blocks, 210–212
multiple objects, 122–125, 123, 125
multiplication, 37
multithreaded devices
defined, 471
JVM as, 332
mutators
with data hiding, 173
defined, 471
|