Helps to build a stronger foundation in programming skills.
Less rigorous and demanding introductory chapters than in previous editions so that students are not overwhelmed.
CD with each book includes: Sun Java2SDK, standard edition v.12.1; Borland JBuilder3 University Edition; Source code for all the book's examples; and hyperlinks to Java demos and Internet resources.
Shows students how to use Java to access members and classes, initialize class objects, understand data abstraction, and more.
Allows students to apply what they've learned in each chapter.
Java is revolutionizing software development with multimedia-intensive, platform-independent, object-oriented code for conventional, Internet-, Intranet- and Extranet-based applets and application. This Third Edition of the world's most widely used university-level Java textbook includes on CD two complete Java Integrated Development Environment (IDEs).
In Java How to Program: Third Edition, the Deitels introduce the fundamentals of object-oriented programming and client/server development in Java. Key topics include:
Java How to Program: Third Edition includes:
Java How to Program is the centerpiece of a family of resources for teaching and learning Java, including a Web site (http://www.prenhall.com/deitel) with the book's code examples and other information for faculty, students and professional programmers; an optional interactive CD-ROM (Java Multimedia Cyber Classroom) containing extensive interactivity features such as thousands of hyperlinks and audio walkthroughs of the code examples in Java How to Program and e-mail access to the authors at
1. Introduction to Computers, the Internet and the Web
Introduction. What Is a Computer? Computer Organization. Evolution of Operating Systems. Personal, Distributed and Client/Server Computing. Machine Languages, Assembly Languages and High-Level Languages. History of C++. History of Java. Java Class Libraries. Other High-level Languages. Structured Programming. The Internet and the World Wide Web. Basics of a Typical Java Environment. General Notes about Java and This Book. A Tour of the Book.
Introduction. A Simple Program: Printing a Line of Text. Another Java Application: Adding Integers. Memory Concepts. Arithmetic. Decision Making: Equality and Relational Operators.
Introduction. Thinking About Objects. Sample Applets from the Java 2 Software Development Kit. A Simple Java Applet: Drawing a String. Two More Simple Applets: Drawing Strings and Lines. Another Java Applet: Adding Integers. Java Applet Internet and World Wide Web Resources.
Introduction. Algorithms. Pseudocode. Control Structures. The if Selection Structure. The if/else Selection Structure. The While Repetition Structure. Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition). Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition). Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 3 (Nested Control Structures). Assignment Operators. Increment and Decrement Operators. Primitive Data Types.
Introduction. Essentials of Counter-Controlled Repetition. The for Repetition Structure. Examples Using the for Structure. The switch Multiple-Selection Structure. The Do/While Repetition Structure. The break and continue Statements. The Labeled break and continue Statements. Logical Operators. Structured Programming Summary.
Introduction. Program Modules in Java. Math Class Methods. Methods. Method Definitions. Java API Packages. Random Number Generation. Example: A Game of Chance. Duration of Identifiers. Scope Rules. Recursion. Example Using Recursion: The Fibonacci Series. Recursion vs. Iteration. Method Overloading. Methods of Class JApplet.
Introduction. Arrays. Declaring and Allocating Arrays. Examples Using Arrays. References and Reference Parameters. Passing Arrays to Methods. Sorting Arrays. Searching Arrays: Linear Search and Binary Search. Multiple-Subscripted Arrays.
Introduction. Implementing a Time Abstract Data Type with a Class. Class Scope. Controlling Access to Members. Creating Packages. Initializing Class Objects: Constructors. Using Overloaded Constructors. Using Set and Get Methods. Software Reusability. Final Instance Variables. Composition: Objects as Instance Variables of Other Classes. Package Access. Using the This Reference. Finalizers. Static Class Members. Data Abstraction and Information Hiding.
Introduction. Superclasses and Subclasses. Protected Members. Relationship between Superclass Objects and Subclass Objects. Constructors and Finalizers in Subclasses. Implicit Subclass-Object-to-Superclass-Object Conversion. Software Engineering with Inheritance. Composition vs. Inheritance. Case Study: Point, Circle, Cylinder. Introduction to Polymorphism. Type Fields and Switch Statements. Dynamic Method Binding. Final Methods and Classes. Abstract Superclasses and Concrete Classes. Polymorphism Examples. Case Study: A Payroll System Using Polymorphism. New Classes and Dynamic Binding. Case Study: Inheriting Interface and Implementation. Case Study: Creating and Using Interfaces. Inner Class Definitions. Notes on Inner Class Definitions. Type-Wrapper Classes for Primitive Types.
Introduction. Fundamentals of Characters and Strings. String Constructors. String Methods Length, charAt and getChars. Comparing Strings. String Method hashCode. Locating Characters and Substrings in Strings. Extracting Substrings from Strings. Concatenating Strings. Miscellaneous String Methods. Using String Method valueOf. String Method Intern. StringBuffer Class. StringBuffer Constructors. StringBuffer Methods Length, Capacity. setLength and ensureCapacity. StringBuffer Methods charAt, setCharAt, getChars and Reverse. StringBuffer Append Methods. StringBuffer Insertion and Deletion Methods. Character Class Examples. Class StringTokenizer. A Card Shuffling and Dealing Simulation.
Introduction. Graphics Contexts and Graphics Objects. Color Control. Font Control. Drawing Lines, Rectangles and Ovals. Drawing Arcs. Drawing Polygons and Polylines. The Java2D API. Java2D Shapes.
Introduction. Swing Overview. Jlabel. Event Handling Model. JtextField and JpasswordField. Jbutton. JcheckBox and JradioButton. JcomboBox. Jlist. Multiple-Selection Lists. Mouse Event Handling. Adapter Classes. Keyboard Event Handling. Layout Managers. Panels.
Introduction. JtextArea. Creating a Customized Subclass of Jpanel. Creating a Self-Contained Subclass of Jpanel. Jslider. Windows. Designing Programs that Execute as Applets or Applications. Using Menus with Frames. Using JpopupMenus. Pluggable Look-and-Feel. Using JdesktopPane and JinternalFrame. Layout Managers. BoxLayout Layout Manager. CardLayout Layout Manager. GridBagLayout Layout Manager. GridBagConstraints Constants RELATIVE and REMAINDER.
Introduction. When Exception Handling Should Be Used. Other Error Handling Techniques. The Basics of Java Exception Handling. An Exception Handling Example: Divide by Zero. Try Blocks. Throwing an Exception. Catching an Exception. Rethrowing an Exception. Throws Clause. Constructors, Finalizers and Exception Handling. Exceptions and Inheritance. Finally Block. Using printStackTrace and getMessage.
Introduction. Class Thread: An Overview of the Thread Methods. Thread States: Life Cycle of a Thread. Thread Priorities and Thread Scheduling. Thread Synchronization. Producer/Consumer Relationship without Thread Synchronization. Producer/Consumer Relationship with Thread Synchronization. Producer/Consumer Relationship: The Circular Buffer. Daemon Threads. Runnable Interface. Thread Groups.
Introduction. Downloading the Java Media Framework. Loading, Displaying and Scaling Images. Loading and Playing Audio Clips. The Java Media Player. Animating a Series of Images. Animation Issues. Customizing Applets via the HTML param Tag. Image Maps. Java Plug-In. Internet and World Wide Web Resources.
Introduction. Data Hierarchy. Files and Streams. Creating a Sequential-Access File. Reading Data from a Sequential-Access File. Updating Sequential-Access Files. Random-Access Files. Creating a Random-Access File. Writing Data Randomly to a Random-Access File. Reading Data Sequentially from a Random-Access File. Example: A Transaction-Processing Program. Class File.
Introduction. Database Systems. Relational Database Model. Relational Database Overview: The Books.mdb Database. Structured Query Language. A First Example. Reading, Inserting, and Updating a Microsoft Access database. Transaction Processing.
Introduction. Overview of Servlet Technology. Downloading the Java Servlet Development Kit. Handling HTTP GET Requests. Handling HTTP POST Requests. Session Tracking. Multitier Applications: Using JDBC from a Servlet. Electronic Commerce. Servlet Internet and World Wide Web Resources.
Introduction. Case Study: Creating a Distributed System with RMI. Defining the Remote Interface. Implementing the Remote Interface. Define the Client. Compile and Execute the Server and the Client.
Introduction. Manipulating URLs. Reading a File on a Web Server. Establishing a Simple Server (Using Stream Sockets). Establishing a Simple Client (Using Stream Sockets). Client/Server Interaction with Stream Socket Connections. Connectionless Client/Server Interaction with Datagrams. Client/Server Tic-Tac-Toe Using a Multithreaded Server. Security and the Network.
Introduction. Self-Referential Classes. Dynamic Memory Allocation. Linked Lists. Stacks. Queues. Trees.
Introduction. Vector Class and Enumeratio Interface. Stack Class. Dictionary Class. Hashtable Class. Properties Class. Random Class. Bit Manipulation and the Bitwise Operators. BitSet Class.
Introduction. Overview. Class Arrays. Interface Collection and Class Collections. Lists. Algorithms. Sets. Maps. Synchronization Wrappers. Unmodifiable Wrappers. Abstract Implementations.
Introduction. BeanBox Overview. Preparing a Class to Be a JavaBean. Creating a JavaBean: Java Archive Files and the jar Utility. Adding Beans to the BeanBox. Connecting Beans with Events in the BeanBox. Adding Properties to a JavaBean. Creating a JavaBean with a Bound Property. Specifying the BeanInfo Class for a JavaBean. JavaBeans World Wide Web Resources.
Introduction. The Sites.
Introduction. Resources. Products. FAQs. Tutorials. Magazines. Java Applets. Multimedia. Servlets. JavaBeans. Java CORBA. Newsgroups.
Introduction. Abbreviating Binary Numbers as Octal Numbers and Hexadecimal Numbers. Converting Octal Numbers and Hexadecimal Numbers to Binary Numbers. Converting from Binary, Octal, or Hexadecimal to Decimal. Converting from Decimal to Binary, Octal, or Hexadecimal. Negative Binary Numbers: Two's Complement Notation.
Introduction. Problem Statement. Elevator Laboratory Assignment 1. Elevator Laboratory Assignment 2. Elevator Laboratory Assignment 3. Elevator Laboratory Assignment 4. Elevator Laboratory Assignment 5. Elevator Laboratory Assignment 6. Elevator Laboratory Assignment 7. Elevator Laboratory Assignment 8. Elevator Laboratory Assignment 9. Elevator Laboratory Assignment 10. Elevator Laboratory Assignment 11. Elevator Laboratory Assignment 12. Design Review Questions. Recommended Modifications.
Introduction. Documentation Comments. Documenting Java Source Code. javadoc. Files Produced by javadoc.
Introduction. Tutorials. Demos. Resources. Developers. Specifications. Frequently Asked Questions (FAQs). Magazines.
Introduction. Tutorials. Resources. Demos. Specifications. FAQs. Magazines.
New Features in Java How to Program: Third Edition
This edition contains many new features and enhancements including:
Java How to Program: Third Edition includes:
The CD-ROM at the end of this book contains Sun Microsystem's J2SDK 1.2.1 (i.e., Java 2) software development kit and two powerful Java integrated development environments (IDEs)-NetBeans DeveloperX2 and Borland JBuilder 3 University Edition. The CD also contains the book's examples and an HTML Web page with links to the Deitel & Associates, Inc. Web site, the Prentice Hall Web site and the many Web sites listed in the Appendices. If you have access to the Internet, this Web page can be loaded into your World Wide Web browser to give you quick access to all the resources.
NetBeans DeveloperX2 is a professional IDE written in Java that includes a graphical user interface designer, code editor, compiler, visual debugger and more. J2SDK 1.2.1 must be installed before installing DeveloperX2.
Borland JBuilder 3 University Edition is a customized version of JBuilder designed to meet the unique needs of the education market. The JBuilder 3 University Edition IDE includes an application browser, project manager, code editor, HTML viewer, graphical debugger and compiler. JBuilder 3 supports the latest Java standards, including Java 2, JavaBeans, JAR files, inner classes, internationalization, security and more.
If you have any questions about using this software, please read the introductory documentation on the CD-ROM. We will be putting additional information on our Web site: http://www.deitel.com.
ONE MONTH ACCESS!
Get unlimited 30-day access to thousands of Books & Training Videos about technology, professional development and digital media If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months.