Java The Complete Reference, Seventh Edition

(Greg DeLong) #1
TYPE, 387, 391, 398, 402, 403

Type argument(s), 318, 320, 324
and bounded types, 325–327
and class hierarchies, 342–343
Type conversion
automatic, 33, 45, 126–127
narrowing, 45
widening, 45
Type interface, 436
Type parameter(s)
and bounded types, 324–326
cannot create an instance of a, 354
and class hierarchies, 343–345
and erasure, 349–351, 354
and primitive types, 320
and static members, 354–355
and type safety, 320
used with a class, 317, 322, 324
used with a method, 318, 335, 336
Type safety
and arrays, 356
and collections, 475, 478
and generic methods, 336
and generics, 315, 316, 319, 320–322, 439,
475, 484, 485, 501
and raw types, 339–342
and wildcard arguments, 327–329, 331
Type-safe view, 478
Type(s)
bounded, 324, 327
casting, 46–47, 48
checking, 10, 11, 33
data.SeeData type(s)
parameterized, 316, 317
promotion, 35, 47–48
wrappers, 264–266, 272, 320, 386–403
TypeNotPresentException, 218


UU


UDP protocol, 599, 600, 613
UI delegate, 861, 862
ulp( ), 419, 420
UnavailableException class, 912, 915
Unboxing, 266
Unchecked warnings and raw types, 341–342
UnicastRemoteObject, 837
Unicode, 37, 38, 40, 286, 360, 361–362, 366,
400, 578
code points, table of methods providing
support for, 401–402
support for 32-bit, 401–402


Uniform Resource Identifier (URI), 612
Uniform Resource Locator (URL).SeeURL
(Uniform Resource Locator)
UNIX, 4, 599
UnknownHostException, 601, 602
unlock( ), 789, 808, 809
unmodifiable... collections methods, 478, 479
Unreachable code, 210–211
unread( ), 572, 585
UnsupportedOperationException, 218, 440,
441, 442, 459, 464, 478
update( ), 518, 519, 623, 625, 626, 676
overriding, 623
URI class, 612
URL (Uniform Resource Locator), 605–606,
612, 907
specification format, 606
URL class, 605–607, 610, 633
URLConnection class, 607–610
useDelimiter( ), 547
User Datagram Protocol (UDP), 599, 600, 613
useRadix( ), 549
UUID class, 553

VV
value (annotation member name), 281, 282
VALUE (PARAM), 630
valueBound( ), 919
valueChanged( ), 896, 901
valueOf( ), 258–259, 364, 374–375, 380, 381, 388,
389, 391, 392, 394, 396, 403, 433
values( ), 258–259, 465
valueUnbound( ), 919
van Hoff, Arthur, 6
Varargs, 14, 151–156
and ambiguity, 155–156
and formatted I/O, 525
methods, overloading, 154–155
and Java’s printf( ), 151
parameter, 153–154, 458
Variable(s), 41–45
declaration, 25, 27, 41–42
definition of, 24, 42
dynamic initialization of, 42
enumeration, 256
final, 143
instance.SeeInstance variables
interface, 193, 200–202
object reference.SeeObject reference
variables
scope and lifetime of, 42–45

Index 1023

Free download pdf