did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780131489530

Introduction to Java Programming, Core

by
  • ISBN13:

    9780131489530

  • ISBN10:

    0131489534

  • Edition: 5th
  • Format: Paperback
  • Copyright: 2005-01-01
  • Publisher: Prentice Hall
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $82.40

Summary

Using a step-by-step approach that fosters self-teaching, Liang presents Java programming in four parts. The early chapters outline the conceptual basis for understanding Java. Subsequent chapters progressively present Java programming in detail, culminating with the development of comprehensive Java applications.Revised in every detail to enhance clarity, content, presentation, examples, and exercises. Updated to JSE 5.0 Features many new illustrations and short examples throughout to demonstrate concepts and techniques. Presents large examples in case studies with overall discussions and thorough line-by-line explanations. Expands treatment of Object-Oriented Programming and GUI Programming. Features excellent coverage of advanced topics in the new Comprehensive version, including: Exceptions, data structures, multithreading, JavaBeans, MVC, Containers, Advanced Swing, Database Programming, Servlets, JavaServer Pages, Networking, and Remote Method Invocation.Ideal tutorial/reference for programmers who want to learn more about Java.

Table of Contents

Part I Fundamentals of Programming
1(211)
Introduction to Computers, Programs, and Java
3(29)
Introduction
4(1)
What Is a Computer?
4(3)
Programs
7(2)
Operating Systems
9(1)
Number Systems (Optional)
10(3)
Java, World Wide Web, and Beyond
13(3)
Characteristics of Java (Optional)
16(3)
The Java Language Specification, API, JDK, and IDE
19(1)
A Simple Java Program
20(1)
Creating, Compiling, and Executing a Java Program
21(2)
Anatomy of the Java Program
23(2)
Displaying Text in a Message Dialog Box
25(7)
Primitive Data Types and Operations
32(48)
Introduction
33(1)
Writing Simple Programs
33(2)
Identifiers
35(1)
Variables
36(1)
Assignment Statements and Assignment Expressions
37(1)
Constants
38(1)
Numeric Data Types and Operations
39(5)
Numeric Type Conversions
44(1)
Character Data Type and Operations
45(2)
boolean Data Type and Operations
47(3)
Operator Precedence and Associativity
50(1)
Operand Evaluation Order
51(1)
The String Type
52(1)
Getting Input from Input Dialogs
53(3)
Case Studies
56(7)
Getting Input from the Console (Optional)
63(1)
Formatting Output (JDK 1.5 Feature)
64(2)
Programming Style and Documentation
66(2)
Programming Errors
68(1)
Debugging
69(11)
Control Statements
80(45)
Introduction
81(1)
Selection Statements
81(10)
Loop Statements
91(9)
Which Loop to Use?
100(1)
Using the Keywords break and continue
101(3)
Case Studies
104(21)
Methods
125(50)
Introduction
126(1)
Creating a Method
126(1)
Calling a Method
127(3)
Passing Parameters by Values
130(3)
Overloading Methods
133(4)
The Scope of Local Variables
137(1)
Method Abstraction
138(1)
The Math Class
138(3)
Case Study: Generating Random Characters
141(2)
Stepwise Refinement (Optional)
143(6)
Recursion (Optional)
149(10)
Packages (Optional)
159(16)
Arrays
175(36)
Introduction
176(1)
Array Basics
176(7)
Copying Arrays
183(1)
Passing Arrays to Methods
184(4)
Returning an Array from a Method
188(3)
Sorting Arrays
191(2)
Searching Arrays
193(3)
Multidimensional Arrays
196(15)
Part II Object-Oriented Programming
211(156)
Objects and Classes
213(44)
Introduction
214(1)
Defining Classes for Objects
214(1)
Constructing Objects Using Constructors
215(1)
Accessing Objects via Reference Variables
216(6)
Using Classes from the Java Library
222(1)
Visibility Modifiers, Accessors, and Mutators
223(2)
Data Field Encapsulation
225(2)
Immutable Objects and Classes
227(1)
Passing Objects to Methods
228(1)
Static Variables, Constants, and Methods
229(4)
The Scope of Variables
233(1)
The this Keyword
234(1)
Array of Objects
235(3)
Class Abstraction and Encapsulation
238(1)
Case Study: The Loan Class
238(4)
Case Study: The StackOfIntegers Class (Optional)
242(3)
Inner Classes
245(12)
Strings
257(30)
Introduction
258(1)
The String Class
258(9)
The Character Class
267(3)
The StringBuffer Class
270(4)
The StringTokenizer Class
274(2)
The Scanner Class (JDK 1.5 Feature)
276(1)
Implementing MyInput Using Scanner
276(2)
Command-Line Arguments
278(9)
Inheritance and Polymorphism
287(28)
Introduction
288(1)
Superclasses and Subclasses
288(1)
Using the Keyword super
289(2)
Overriding Methods
291(2)
The Object class
293(1)
Polymorphism, Dynamic Binding, and Generic Programming
294(2)
Casting Objects and the instanceof Operator
296(3)
Hiding Data Fields and Static Methods (Optional)
299(2)
The protected Data and Methods
301(1)
The final Classes, Methods, and Variables
302(1)
The finalize, clone, and getClass Methods (Optional)
302(3)
Initialization Blocks (Optional)
305(10)
Abstract Classes and Interfaces
315(28)
Introduction
316(1)
Abstract Classes
316(6)
The Calendar and GregorianCalendar classes
322(1)
Interfaces
323(8)
Processing Primitive Data Type Values as Objects
331(5)
Automatic Conversion Between Primitive Types and Wrapper Class Types (JDK 1.5 Feature)
336(7)
Object-Oriented Modeling
343(24)
Introduction
344(1)
The Software Development Process
344(1)
Discovering Relationships Among Classes
345(3)
Case Study: A Class Design Example
348(5)
Case Study: The Rational Class
353(5)
Class Design Guidelines
358(2)
Modeling Dynamic Behavior Using Sequence Diagrams and Statecharts (Optional)
360(2)
Framework-Based Programming Using Java API
362(5)
Part III Gui Programming
367(180)
Getting Started with GUI Programming
369(50)
Introduction
370(1)
GUI Components
370(1)
The Java GUI API
371(3)
Frames
374(3)
Layout Managers
377(7)
The Color Class
384(1)
The Font Class
385(1)
Using Panels as Subcontainers
386(2)
Drawing Graphics on Panels
388(10)
Centering a Display Using the FontMetrics Class
398(2)
Case Study: The MessagePanel Class
400(4)
Case Study: The StillClock Class (Optional)
404(15)
Event-Driven Programming
419(27)
Introduction
420(1)
Event and Event Source
420(1)
Listeners, Registrations, and Handling Events
421(9)
Mouse Events
430(5)
Keyboard Events
435(3)
The Timer Class (Optional)
438(8)
Creating User Interfaces
446(51)
Introduction
447(1)
Common Features of Swing GUI Components
447(2)
Buttons
449(8)
Check Boxes
457(3)
Radio Buttons
460(3)
Labels
463(1)
Text Fields
464(2)
Text Areas
466(4)
Combo Boxes
470(3)
Lists
473(3)
Scroll Bars
476(3)
Sliders
479(3)
Creating Multiple Windows
482(15)
Applets, Images, and Audio
497(50)
Introduction
498(1)
The Applet Class
498(2)
The JApplet Class
500(1)
The HTML File and the <applet> Tag
501(5)
Passing Strings to Applets
506(2)
Enabling Applets to Run as Applications
508(4)
Case Study: TicTacToe (Optional)
512(4)
Case Study: Bouncing Ball (Optional)
516(3)
The URL Class (Optional)
519(1)
Displaying Images (Optional)
520(2)
Case Study: The ImageViewer Component (Optional)
522(4)
Case Study: The Image Animations (Optional)
526(2)
Playing Audio
528(2)
Packaging and Deploying Java Projects (Optional)
530(3)
Pluggable Look-and-Feel (Optional)
533(14)
Part IV Exception Handling and IO
547(70)
Exceptions and Assertions
549(23)
Introduction
550(1)
Exceptions and Exception Types
550(3)
Understanding Exception Handling
553(8)
Rethrowing Exceptions
561(1)
The finally Clause
561(1)
When to Use Exceptions
562(1)
Creating Custom Exception Classes (Optional)
562(1)
Assertions
563(9)
Simple Input and Output
572(45)
Introduction
573(1)
The File Class
573(2)
How is I/O Handled in Java?
575(3)
Text I/O
578(7)
Case Study: Text Viewer
585(2)
Binary I/O
587(6)
Case Study: Copy File
593(2)
More on Text Files and Binary Files
595(1)
Object I/O (Optional)
596(4)
Random Access Files (Optional)
600(3)
Case Study: Address Book (Optional)
603(14)
Part V Data Structures and Collections Framework
617(64)
Object-Oriented Data Structures
619(27)
Introduction
620(1)
Lists
620(14)
Stacks and Queues
634(4)
Binary Trees (Optional)
638(8)
Java Collections Framework
646(35)
Introduction
647(1)
The Collection Interface and the AbstractCollection Class
648(1)
Sets
649(5)
The Comparator Interface
654(2)
Lists
656(8)
Using Generic Types (JDK 1.5 Feature)
664(1)
Maps
665(5)
The Collections Class
670(3)
The Arrays Class
673(8)
Part VI Threads and Internationalization
681(68)
Multithreading
683(33)
Introduction
684(1)
Thread Concepts
684(1)
Creating Threads by Extending the Thread Class
685(2)
Creating Threads by Implementing the Runnable Interface
687(2)
Thread Controls and Communications
689(3)
Thread Groups
692(1)
Synchronization and Cooperation Among Threads
693(7)
Controlling Animation Using Threads (Optional)
700(3)
Running Audio on a Separate Thread (Optional)
703(4)
JProgressBar (Optional)
707(9)
Internationalization
716(33)
Introduction
717(1)
The Locale Class
717(2)
Processing Date and Time
719(11)
Formatting Numbers
730(5)
Resource Bundles (Optional)
735(14)
Part VII Advanced GUI Programming
749(206)
JavaBeans, Bean Events, and MVC
751(38)
Introduction
752(1)
JavaBeans
752(1)
Bean Properties
753(1)
Bean Events
754(3)
Creating Custom Event Sets
757(1)
Creating Custom Source Components
758(7)
Working with Existing Event Sets
765(5)
Event Adapters
770(6)
MVC
776(13)
Containers, Layout Managers, and Borders
789(51)
Introduction
790(1)
Swing Container Structures
790(2)
Layout Managers
792(19)
Creating Custom Layout Managers
811(5)
JScrollPane
816(4)
JTabbedPane
820(2)
JSplitPane
822(4)
Swing Borders
826(14)
Menus, Toolbars, Dialogs, and Internal Frames
840(43)
Introduction
841(1)
Menus
841(6)
Popup Menus
847(2)
JToolBar
849(3)
Processing Actions Using the Action Interface
852(3)
JOptionPane Dialogs
855(8)
Creating Custom Dialogs
863(3)
JColorChooser
866(2)
JFileChooser
868(5)
Creating Internal Frames (Optional)
873(10)
Advanced Swing Components
883(72)
Introduction
884(1)
Swing Model-View-Controller Architecture
884(1)
JSpinner
885(9)
JList
894(11)
JComboBox
905(4)
JTable
909(21)
JTree
930(25)
Part VIII Web Programming
955(134)
Java Database Programming
957(53)
Introduction
958(1)
Relational Database Systems
958(4)
SQL
962(8)
JDBC
970(7)
PreparedStatement
977(3)
Retrieving Metadata
980(1)
A Universal SQL Client (Optional)
981(5)
Batch Processing (Optional)
986(5)
Scrollable and Updateable Result Set (Optional)
991(9)
Storing and Retrieving Images in JDBC (Optional)
1000(10)
Servlets
1010(51)
Introduction
1011(1)
HTML and Common Gateway Interface
1011(2)
Creating and Running Servlets
1013(3)
The Servlet API
1016(4)
Creating Servlets
1020(2)
HTML Forms
1022(5)
Database Programming in Servlets
1027(4)
Session Tracking
1031(14)
Sending Images from Servlets
1045(16)
JavaServer Pages
1061(28)
Introduction
1062(1)
A Simple JSP Page
1062(1)
How Is a JSP Page Processed?
1063(1)
JSP Scripting Constructs
1063(3)
Predefined Variables
1066(2)
JSP Directives
1068(4)
Using JavaBeans in JSP
1072(3)
Getting and Setting Properties
1075(1)
Associating Properties with Input Parameters
1075(4)
Forwarding Requests from JavaServer Pages
1079(10)
Part IX Distributed Computing
1089
Networking
1091(44)
Introduction
1092(1)
Client/Server Computing
1092(6)
The InetAddress Class
1098(1)
Serving Multiple Clients
1098(4)
Applet Clients
1102(2)
Sending and Receiving Objects
1104(5)
Retrieving Files from Web Servers
1109(2)
JEditorPane (Optional)
1111(2)
Case Study: Distributed TicTacToe (Optional)
1113(11)
Datagram Socket (Optional)
1124(11)
Remote Method Invocations
1135
Introduction
1136(1)
RMI Basics
1136(2)
Developing RMI Applications
1138(8)
RMI vs. Socket-Level Programming
1146(1)
Developing Three-Tier Applications Using RMI
1146(4)
RMI Callbacks
1150
Appendixes
1(1)
Appendix A Java Keywords
2(1)
Appendix B The ASCII Character Set
3(1)
Appendix C Operator Precedence Chart
4(2)
Appendix D Java Modifiers
6(1)
Appendix E UML Graphical Notations
7(4)
Appendix F Special Floating-Point Values
11(1)
Appendix G Bit Operations
12
Index 1

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program