Java™ Rules
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Java™ Rules
Java™ Rules

Java™ Rules

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

Java™ Rules distills the Java Language Specification into an extraordinary resource for every Java developer. Doug Dunn has eliminated obscure information only needed by JVM and compiler developers, and added crucial real-world guidance not found in the spec. The result: the most readable, accessible Java reference ever created. Java™ Rules offers a thorough overview of the Java 2 Platform, the java.lang, java.io, and java.util packages, and associated APIs and class libraries. Long-time consultant and trainer Doug Dunn introduces the inner workings of the language with exceptional clarity, detailing fine points and delivering expert tips for creating robust, efficient software. Topics covered include: lexical structure, compilation units, application programs, packages, JAR files, versioning, reference types, variables and constants, strings and arrays, and much more. For all beginning-to-intermediate level Java programmers, including experienced developers in other languages who want a Java tutorial and reference that respects their expertise.

Table of Contents:
Preface. About This Book. A Java Tradition. 1. Lexical Structure. Introduction. White Space. Indenting. Comments. Commenting Out Large Blocks of Code. Identifiers. Java Naming Conventions. Keywords. Literals. Character Literals. Escape Sequences. String Literals. Numeric Literals. Class Literals. Separators. Operators. 2. Compilation Units. Introduction. The Terminology of Class Body Declarations. The Definition of Fields in Java. Recognizing Constructors in Source Code. Anatomy of a Compilation Unit. Special Initialization Methods. The Significance of Textual Order. Limit of One “public” Package Member. Package Declarations. Package Names. The Members of a Package. Using the SDK to Develop Packages. Import Declarations. Automatic Imports. Redundant Imports. Importing Nested Classes of All Sorts (Top-Level or Inner). How Import Declarations are Used by a Compiler. The Efficiency of Type-Import-on-Demand Declarations. Type Declarations. Class Type Declarations. Interface Type Declarations. The Definition of Top-Level Classes. Helper Classes are Not Fundamentally Different. Technical Arguments Against the Use of Helper Classes. The Five Kinds of Classes and Interfaces. “Public” Top-Level Classes. Non-“public” Member Classes. Local and Anonymous Classes. Nested Interfaces. Choosing Which Kind of Class to Use. From “VectorEnumerator” to an Anonymous Class. The Rationale for Containment and Inner Class Hierarchies. Containment and Inner Class Hierarchies. Containment Hierarchies. Inner Class Hierarchies. 3. The “static” Modifier, “this,” and “super”. Introduction. The “static” Modifier. “static” Fields. “static” Methods. “static” Classes. The Definition of “static” Context. The “static” Context in an Inner Class Hierarchy. The “this” and “super” Keywords. The Current Object (“this”). The Direct Superclass (“super”). Practical Uses of the “this” and “super” Keywords. Using “super” to Reference Members in Different Packages. Multiple Current Instances (a.k.a. Levels). A Note About Deeply Nested Types. Qualifying the “this” Keyword. Qualifying the “new” Keyword. Qualifying the “super” Keyword. 4. Primitive Data Types and Object. Introduction. The Definition of Data Types. Data Type as a Set of Values. The Object-Oriented Definition of Type. Numeric Data Types. Integral Types. Floating-Point Types. Understanding the Floating-Point Types. The “char” Data Type. The “boolean” Data Type. The “null” Type. The “Number” Class. The “java.math” Package. The “BigInteger” Class. The “BigDecimal” Class. Currency Calculations. Inexact Results and Comparison Operators. Rounding the Result of a Floating-Point Operation. Using Integral Types to Store Monetary Values. Primitive Type Wrapper Classes. Parsing Strings for Primitive Type Values. Converting Primitive Numeric Types to Strings. Bit Pattern Manipulation. Accessing Primitive Type System Properties. Unicode Utility Methods. The “Object” Class. Reference Equality Versus the Equivalence Relationship. Understanding Hash Tables. The Five Housekeeping Methods. The Comparison Methods. What is Default Ordering? What is Natural Ordering? Reverse Order (or Descending) Sorts. Sorting By More Than One Field. The “Comparable” Interface. The “Comparator” Interface. 5. Strings and Other Common Data Types. Introduction. Would-Be Mutator Methods. The Length of a “String” or “StringBuffer”. The Capacity of a “StringBuffer”. Ensuring the Capacity of a “StringBuffer”. “String” Indices. Right-Open Intervals in “String” and “StringBuffer”. Checked Exceptions in String and “StringBuffer”. The “String” Class. Case Mappings. Comparing Strings. Accessing Individual Characters or Substrings. “char[]” to “String” Conversions and Vice Versa. Translating Locally Encoded Strings. Miscellaneous Methods in the “String” Class. Unusual Constructors in the “String” Class. The “StringBuffer” Class. The Overloaded insert and append Methods. Other Methods in the “StringBuffer” Class. Other String-Related Classes. The “StringCharacterIterator” Class. The “StringReader” and “StringWriter” Classes. Lexical Analysis. The “BreakIterator” Class. The “StringTokenizer” Class. The “StreamTokenizer” Class. String Concatenation Operations. A Note about the Overloaded Binary + Operator. Implicit String Conversions. The Intern Mechanism. Shared Character Buffers. Displaying Diagnostic Messages on the Console. Standard I/O. The “print” and “println” Methods. The Locale” Class. The Default Locale. Supported Locales. The “Date” Class. Date Comparisons. The “GregorianCalendar” Class. Instantiating the “GregorianCalendar” Class. The Inconsistent Field Rule. The Maximum DAY_OF_MONTH Rule. Date and Time Fields in the Calendar Class. Standard Default Values for Date and Time Fields. Normalizing Date and Time Fields. Date and Time Field Manipulation Methods. The “TimeZone” Class. Understanding the Difference between i18n and l10n. The Localization of Common Data Types. Formatting Numbers. Formatting Dates and Times. 6. Arrays and The Collections Framework. Introduction. Array, Component, and Element Types. Arrays. The Canonical Form of the “for” Loop. Array Classes Are Dynamically Created. The Members of an Array Type. Array Type Variable Declarations. Initializing Array Type Variables. Array Access Expressions. A Bridge over Troubled Waters (the “toArray” Methods). Untyped References versus Parameterized Types. What Is Run-Time Type? Time Complexities (or Big-O Notation). Constant Time Operations. Amortized Constant Time. Logarithmic Time. Linear Time. Quadratic Time. The Equivalence Relationship and Elements. Duplicate Elements. Using Mutable Objects as Elements in a “Set” or Keys in a “Map”. The Collections Framework. Bulk Operations. The Principle of Maximum Generality. The “Collection” Interface. The Map Interface. Housekeeping Methods for Containers. General-Purpose Implementations. Choosing a General-Purpose Implementation. Performance Tuning the General-Purpose Implementations. Special-Purpose Implementations. “WeakHashMap”. Views. Synchronized Views. Unmodifiable Views. Range Views (Sublists, Subsets, and Submaps). Collection Views of a Map. List View of an Array. Iterators. List Iterators. Using Collection Views to Iterate over a Map. A Poor Man's Collection. Synchronized Iterators. Fail-Fast Iterators. Iterating Backwards Through a “TreeSet” or “TreeMap”. Al-Khwarizmi Concerning the Hindu Art of Reckoning. Utility Methods for “Arrays” and Other “Collections”. Sorting Containers. Searching. Cloning versus Copying a Container. Shuffling. Filling. The Minimum and Maximum Elements. Convenience Implementations. An “equals” Method for Arrays. Custom Implementations of the Core Collection Interfaces. Abstract Implementations. Optional Operations. Restricted Containers. Standard Constructors. Multimaps and Multidimensional Arrays. Multimaps. Multidimensional Arrays. Legacy Containers. Index. 0201709163T10162001


Best Sellers


Product Details
  • ISBN-13: 9780201709162
  • Publisher: Pearson Education Limited
  • Publisher Imprint: Addison Wesley
  • Language: English
  • ISBN-10: 0201709163
  • Publisher Date: 10 Oct 2001
  • Binding: Paperback
  • Returnable: N


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Java™ Rules
Pearson Education Limited -
Java™ Rules
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Java™ Rules

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!