Java In A Nutshell, 5th Edition

Index

[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Y] [Z]

C and C++

        array bounds

        boolean type, Java differences

        C++ features not found in Java

        comments, recognition by StreamTokenizer

        differences between C and Java

        extends keyword (Java) vs. \:

        finalization methods in Java vs. C++

        Java native methods, implementing in C

        memory allocation

                reclaiming

        multiple inheritance, interfaces as alternative to

        object-oriented programming in C++

        performance, Java vs.

        reference types

        unsigned keyword

        variable declarations

        virtual functions in C++

        vitrual functions in C++

        void methods

CA (certificate authority)

CacheRequest class

CacheResponse class

caching

        ResponseCache class

        SecureCacheResponse class

        SSL sessions

        URLs

calendar (XMLGregorianCalendar class)

Calendar class 2nd 3rd

        GregorianCalendar class

call( )

Callable interface 2nd

        scheduling Callable objects

CallbackHandlerProtection (KeyStore)

callbacks

        Callback interface

        CallbackHandler class

        CallbackHandler interface

        ChoiceCallback class

        ConfirmationCallback class

        javax.security.auth.callback

        LanguageCallback class

        NameCallback class

        PasswordCallback class

        TextInputCallback class

        TextOutputCallback class

        UnsupportedCallbackException

CallerRunsPolicy class

calling methods

cancel( )

        Timer class

        TimerTask class

CanceledKeyException

CancellationException

canonical filenames

canRead( ) (File)

canWrite( ) (File)

capacity (buffers)

capacity( )

        ArrayList class

        Vector class

carriage return (\r)

case

        capitalization, Java naming conventions

        case-insensitive pattern matching

        characters

        charset names

        conversions in strings

        ignoring in string comparisons 2nd

case labels (switch statements)

        for enumerated types

        restrictions on

case-sensitivity in Java 2nd

casts 2nd [See also type conversions]

        ( ) (cast) operator 2nd

        ClassCastException

        hidden superclass field, accessing

        narrowing conversions, reference types

        objects to Object instance

        super and this, using

catch clause

        annotations on parameters

catching errors in assertions

catching exceptions

        jdb debugger

        try/catch/finally statement

cbrt( ) (Math)

CDATASection interface (DOM)

certificate authority (CA)

certificate revocation lists [See CRLs]

Certificate.CertificateRep class

CertificateException

CertificateExpiredException

CertificateFactory class

CertificateFactorySpi class

CertificateNotYetValidException

CertificateParsingException

certificates

        Certificate class

        Certificate interface 2nd 3rd 4th

        CertPathTrustManagerParameters class

        creating self-signed for public key associated with alias

        displaying contents with keytool

        in keystore file

        java.security.cert package

        management by keytool

        public key, associated with JAR file

        storing in keystore

        TrustedCertificateEntry (KeyStore)

        X.500, distinguished name

        X509Certificate, private key for

CertPath class

CertPath.CertPathRep

CertPathBuilder

CertPathBuilderException

CertPathBuilderResult

CertPathBuilderSpi

CertPathParamters

CertPathValidator

CertPathValidatorException

CertPathValidatorResult

CertPathValidatorSpi

CertSelector

CertStore class

CertStoreException

CertStoreParameters interface

CertStoreSpi class

chaining

        certificates

        constructors

        finalizers

       methods

                buffers

                overridden methods

channel( ) (FileLock)

channels 2nd

        avoiding explicit character encoding/decoding

        basic operations

        ByteChannel interface

        Channel interface 2nd

        Channels class

                charset encoder/decoder

        client-side networking with SocketChannel

        DatagramChannel 2nd

        FileChannel object, obtaining 2nd 3rd

        files, reading and writing 2nd

        inheritedChannel( )

        interrupted threads and

        java.nio.channels package

        nonblocking

        ReadableByteChannel and WritableByteChannel

        server-side networking

        ServerSocketChannel 2nd

        service provider interface

        SocketChannel

        streams and

char literals, quoting in Java code

char type 2nd

        char values vs.

        Character class 2nd

                new methods in Java 5.0

                static methods for working with characters

        conversion to other primitive types

        escape characters in char literals

        surrogate pair, Unicode supplementary characters

character encoding

        internationalization features

        locale- and platform-dependent

        native2ascii tool

        OutputStreamWriter class

       Unicode [See Unicode]

        UnsupportedEncodingException

character sets [See charsets]

character encoding [See also charsets]

character streams 2nd [See also input/output; streams]

        CharConversionException

        filtering input streams

        input and output

        InputStreamReader class

        LineNumberReader class

        output, implementing Appendable interface 2nd

        OutputStreamWriter class

        PipedReader class

        PipedWriter class

        PrintWriter class

        PushbackReader class

        Readable interface, implementing

        Reader (input stream superclass)

        reading with BufferedReader

        streaming data to and from arrays

        StringReader class

        superclass of output streams (Writer)

        writing with BufferedWriter

CharacterCodingException

CharacterData interface (DOM)

characters

        char data type

        Character class 2nd 3rd

                new methods in Java 5.0

                Subset class

                UnicodeBlock class

        CharacterIterator interface

        conventions for Java names

        converting between byte buffers and character buffers

        converting to bytes

        encoding into and decoding from bytes

        handling by StreamTokenizer

        in identifiers

        pattern matching with regular expressions

        reading and writing streams of

        string, CharSequence and CharBuffer interfaces

        testing for different categories of

        translating to bytes

CharArrayReader class 2nd

CharArrayWriter class 2nd

charAt( )

        CharSequence interface

        String class

        StringBuffer class

CharBuffer class 2nd 3rd

CharSequence interface 2nd 3rd 4th

        contentEquals( )

charsets 2nd 3rd

        Charset class 2nd

        CharsetDecoder class

        CharsetEncoder class

        CharsetProvider

        conversions

        decoding engine

       encoding and decoding text with

                EUC-JP (for Japanese text)

        encoding engine

        java.nio.charset package

        required support by Java implementations

        Unicode

charValue( ) (Character)

checkAccess( )

        Thread class

        ThreadGroup class

checked exceptions

        methods throwing

CheckedInputStream class

checkedList( ) and checkedMap( ) (Collections)

CheckedOutputStream class

checkError( )

checkGuard( ) (Guard)

checkPermission( )

        AccessControlContext class

        AccessController class 2nd

        SecurityManager class

checkRead( ) (SecurityManager) 2nd

Checksum interface

checksums 2nd [See also message digests]

checkValidity( ) (X509Certificate)

Chinese ideographs

ChoiceCallback class

ChoiceFormat class

Cipher class 2nd 3rd

        NullCipher class

cipher suites, SSL connections

        client/server disagreement on

        obtaining name of

        setting

        supported, getting full set of

CipherInputStream class 2nd

CipherOutputStream class 2nd

CipherSpi class

circular dependency

class body

        access to members 2nd

        anonymous classes 2nd

        enumerated types

                value-specific

Class class 2nd 3rd

        dynamic class loading

        dynamic instantiation with newInstance( )

        getMethod( )

        new methods, Java 5.0

class fields

        default initialization

        initializing

                static initializers, using

        superclass, hiding

        System.out.println( )

class files

        verification of

class hierarchy 2nd

        containment hierarchy vs.

        omitting tree diagram in javadoc documentation

class loading statistics (jstat)

class members

        access control

        access rules

        constructors and initializers

        hiding fields and methods

class methods

        choosing between class and instance methods

        example of

        interfaces and

        listing all for specified class with jdb debugger

        overriding not allowed

        static modifier

        synchronized

        System.out.println( ) )

ClassCastException

ClassDefinition class

classes 2nd 3rd 4th 5th

        abstract 2nd

                collections

                rules for

        access to

        anonymous 2nd

        assertions 2nd

        bean (JavaBeans)

        byte-code verification, error

       Class [See Class class]

        ClassCastException 2nd

        ClassCircularityError

        ClassDefinition

        ClassFormatError

        ClassLoader class

                enabling/disabling assertions

        ClassNotFoundException

        code source

        constructors, fields, and methods

        converting to strings

        core , Java language

        creating dynamically, with Proxy

        defined

        defining 2nd 3rd

                modifiers

                NoClassDefFoundError

                static initializers

        defining object types

        deprecated (@deprecated javadoc tag)

        digital signatures for

        disassembler tool (javap)

        documentation by javadoc, display of

        dynamic loading

        enumerated types

        extending

        final

        garbage collection, disabling for

        hiding (and encapsulating) data in

        IllegalAccessError

        IllegalAccessException

        IllegalClassFormatException

        implementing interfaces

        IncompatibleClassChangeError

       inner [See nested types]

        InvalidClassException

        Java platform

        javap display, including or excluding from

        LinkageError

        loading

                dynamically, with Class

                SecureClassLoader

                URLClassLoader

        local 2nd

        members of

                class fields

                static and instance

        modifiers

        names, simple and fully qualified

        naming and capitalization conventions

        online documentation

        package, specifying for

        permission, summary of

        proxy

       public

                in Java files

                preventing insertion of public constructor

        reference index

        references to, in @see doc comment tag

        reflection and dynamic loading

        structs vs.

        system, code portability and

        undocumented, portability and

        UnsatisfiedLinkError

        UnsupportedClassVersionError

        version number

ClassFileTransformer interface

"Classic VM"

ClassLoadingMXBean interface

classpaths

        application classes, specifying for javap

        java 2nd

        javac compiler

        javadoc program

        javah tool

        javap, for classes named on command line

        jdb debugger

        serialver tool

clear( )

        Buffer class

        Collection interface 2nd

        List interface

        Map interface

        PhantomReference class

        Reference class

clearAssertionStatus( )

clearProperty( ) (System)

client applications

        -client option (HotSpot VM)

client-side networking, nonblocking I/O

Clock class

clone( ) 2nd 3rd 4th 5th

        Mac class

        MessageDigest class

        Object class 2nd

Cloneable interface 2nd 3rd

        arrays

        implemented by collections and maps

CloneNotSupportedException 2nd 3rd 4th

close( )

        OutputStream class

        Channel interface

        CharArrayWriter class

        Closeable interface 2nd

        DatagramSocket class

        FileInputStream class

        FileOutputStream class

        InputStream class

        JarOutputStream class

        PrintWriter class

        Reader class

        Selector class

        ServerSocket class

        Socket class

        SocketChannel class

        StringWriter class

        Writer class

Closeable interface 2nd

ClosedByInterruptException

ClosedByInterruptException class

ClosedChannelException

ClosedSelectorException

closeEntry( ) (ZipInputStream)

closeInbound( )

closeOutbound( )

code

        critical sections

        formatting and indenting

code blocks, synchronized

code libraries, reading into the system

codePointAt( )

        Character class

        String class

codePointBefore( ) (Character)

codePointCount( )

        Character class

        String class

codepoints

        illegal format exception

CoderMalfunctionError

CoderResult class

CodeSigner class

CodeSource class 2nd

CodingErrorAction class

CollationElementIterator class

CollationKey class

Collator class 2nd

        RuleBasedCollator class

CollectionCertStoreParameters

collections

        abstract classes to implement common collections

        AbstractCollection class

        AbstractList class

        AbstractMap class

        of certificates

        CertStoreParameters

        changes in Java 5.0

        classes in java.util package 2nd

        Collection interface 2nd 3rd 4th

                add( ) and addAll( )

        Collections class

                special-case collections

                utility methods

                wrapper methods

        Collections Framework

                generics in Java 5.0

        converting to and from arrays

        for/in loop

        Hashtables class

        immutable or unmodifiable, error

        implementing Cloneable or Serializable

        List interface

        Map interface

        packages for

        Permission objects

        primitive values, boxing and unboxing conversions

        queues

        RandomAccess interface 2nd

        runtime type safety

        Set interface

        typesafe [See generic typess ]

com.sun.javadoc package

combination assignment operators

combine( ) (DomainCombiner)

command( ) (ProcessBuilder)

command-line tools

        enabling assertions

        Java interpreter, -classpath option

        javac compiler

Comment interface (DOM)

commentChar( )

comments 2nd

        doc

        single-line, enclosed with //

        StreamTokenizer and

compact( )

        ByteBuffer class

Comparable interface 2nd 3rd

        implementation by enumerated types

Comparator interface

compare( )

        Collator class

        Comparator interface

        Double class

compareTo( )

        BigDecimal class

        BigInteger class

        ByteBuffer class

        Character class

        Charset class

        CollationKey class

        Comparable interface 2nd

        Date class

        Double class

        Enum class

        enumerated types

        String class 2nd

compareToIgnoreCase( ) 2nd

comparing

        hashtable key objects

        strings

comparison operators

        listed

        precedence, boolean vs.

        return type

compilation units

compile( )

        Pattern class

        XPath class

compileClass( )

compileClasses( )

compiler (javac) 2nd

Compiler class

compiling

        assertions

        Java program (example)

        varargs methods

CompletionService interface

compound statements 2nd

compression

        JAR files

        java.util.zip package

        Pack200

        pack200 tool

        unpack200 tool

        ZIP files and gzip format

computed goto or jump table

concat( ) (String)

concatenating data from multiple input streams

concatenating strings 2nd 3rd

        + and += operators

        string literals

concrete subclass

concurrency

        atomic operations 2nd 3rd

        blocking queues

        BlockingQueue interface 2nd 3rd

                implementations

        ConcurrentHashMap class

        CopyOnWriteArrayList

        CopyOnWriteArraySet

        exclusion and locks

                deadlock

                Lock objects

        java.util.concurrent package 2nd 3rd 4th

        locks 2nd

                Condition objects

        running and scheduling tasks

                ExecutionException

                Executor interface

                ExecutorService

                Future object

                ScheduledExecutorService

                ThreadPoolEcecutor

                Timer and TimerTask

        synchronizer utilities

        TimeUnit class

ConcurrentHashMap class 2nd

ConcurrentLinkedQueue class 2nd

ConcurrentMap interface 2nd

ConcurrentModificationException 2nd 3rd

Condiiton interface

Condition objects

conditional AND operator (&&) 2nd

conditional operator (?\:) 2nd 3rd

        return type

conditional OR operator () 2nd

ConditionObject class

Configuration class

configuration files

        logging

        Properties class, using for

configureBlocking( )

        SelectableChannel class

        SocketChannel class

ConfirmationCallback class

connect( )

        DatagramChannel class

        DatagramSocket class 2nd

        PipedInputStream class

        PipedOutputStream class

        PipedReader class

        Socket class

        SocketChannel class 2nd

ConnectException

ConnectionPendingException

console

        displaying text on

        input, reading

ConsoleHandler class

constants [See also enumerated types]

        defined by an enumerated type

        ElementType

        enum

        EnumConstantNotPresentException

        HttpURLConnection

        in interface definitions

                inheritance of

        Java object serialization

        Modifier class

        naming conventions 2nd

        RetentionPolicy

        RoundingMode

        separator characters defined by File class

       static and final

                in anonymous classes

                in local classes

        static member import declarations

        Thread.State

        TimeUnit class

        XML

                DatatypeConstants

constrained properties 2nd

Constructor class

constructors 2nd

        anonymous classes and

        chaining, default constructor and

        class

        Constructor class

                changes in Java 5.0

        defined

        defining

                multiple 2nd

                naming, declaring, and writing

        enumerated types 2nd 3rd

        field initialization code in

        how they work

        interfaces and

        invoking from another constructor

        local classes, enclosing instance passed to

        member classes

        references to, in @see doc comment tag

        subclass

        superclass

containing classes

        associating instance with local class

        instance, specifying for member class

containment hierarchy

contains( )

        HashSet class

        Collection interface

        CopyOnWriteArraySet

        Set interface

        TreeSet class

containsAll( ) (Collection)

containsKey( )

        Map interface 2nd

        TreeMap class

containsValue( ) (Map)

contentEquals( )

        CharSequence interface

        String class

ContentHandler interface 2nd 3rd

ContentHandlerFactory interface

continue statements

        for and while loops

        labels, use of

control flags (login module)

conversion types, Formatter

conversions, type [See type conversions]

CookieHandler class

copy constructor

copy( ) (Collections)

CopyOnWriteArrayList class 2nd

CopyOnWriteArraySet class

core Java APIs

corrupted streams

cosh( ) (Math)

CountDownLatch class 2nd

counters for loops, incrementing 2nd

covariant returns 2nd 3rd

        AbstractStringBuiilder class

CRC32 class

create( ) (URI)

createNewFile( ) (File)

createServerSocket( )

createSocket( )

        SocketFactory class

        SSLSocketFactory class

createSSLEngine( ) (SSLContext)

createTempFile( ) (File)

CredentialException

CredentialExpiredException

CredentialNotFoundException

credentials

        destroying or erasing

        KerberosKey

        KerberosTicket

        PrivateCredentialPermission

        refreshing

critical sections

CRLs (certificate revocation lists) 2nd 3rd

        CRL class

        CRLException

        CRLSelector

        X509CRL class

        X509CRLEntry

        X509CRLSelector

cross-references in doc comments

cryptographic checksums [See message digests]

cryptographic-strength random numbers

cryptography 2nd 3rd

        algorithms, parameters for

        arbitrary-precision integers, using

        BigInteger methods used for algorithms

        DSA, RSA, and EC public and private keys

        encrypted objects

        encrypting/ decrypting streams

        encryption and decryption with Cipher

        Java Cryptography Extension (JCE)

        javax.crypto package

        javax.crypto.interfaces package

        javax.crypto.spec package

        keys, invalid

        private key

        public/private key

                in digital signatures

                key management

                keystore file for certificates

        PublicKey interface

        resources for further reading

        secret keys

        service provider, not available

        symmetric-key

cube root of a number

currency formats

currency symbols (Unicode), in identifiers

currentThread( ) (Thread)

currentTimeMillis( ) (System) 2nd

CyclicBarrier class 2nd

Категории