Home > Store > Programming

larger cover

Add To My Wish List

Core Java, Volume I--Fundamentals, 8th Edition

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Extras
  • Reviews
  • Sample Content

Product Author Bios

Cay S. Horstmann is also coauthor of Core JavaServer Faces, Second Edition (Prentice Hall, 2007). Cay is a professor of computer science at San Jose State University, a Java Champion, and a frequent speaker at computer industry conferences.

 

Gary Cornell has been writing and teaching programming professionals for more than twenty years and is the cofounder of Apress. He has written numerous best-selling books for programming professionals, was a cofinalist for a Jolt Award, and won the Readers Choice award from Visual Basic Magazine.

This revised edition of the classic Core Java™, Volume I–Fundamentals, is the definitive guide to Java for serious programmers who want to put Java to work on real projects.

 

Fully updated for the new Java SE 6 platform, this no-nonsense tutorial and reliable reference illuminates the most important language and library features with thoroughly tested real-world examples. The example programs have been carefully crafted to be easy to understand as well as useful in practice, so you can rely on them as an outstanding starting point for your own code.

 

Volume I is designed to quickly bring you up to speed on what’s new in Java SE 6 and to help you make the transition as efficiently as possible, whether you’re upgrading from an earlier version of Java or migrating from another language. The authors concentrate on the fundamental concepts of the Java language, along with the basics of user-interface programming. You’ll find detailed, insightful coverage of 

  • Java fundamentals
  • Object-oriented programming
  • Interfaces and inner classes
  • Reflection and proxies
  • The event listener model
  • GUI programming with Swing
  • Packaging applications
  • Exception handling
  • Logging and debugging
  • Generic programming
  • The collections framework
  • Concurrency

For detailed coverage of XML processing, networking, databases, internationalization, security, advanced AWT/Swing, and other advanced features, look for the forthcoming eighth edition of Core Java™, Volume II—Advanced Features (ISBN: 978-0-13-235479-0).

Author's Site

Visit the author's website at horstmann.com/corejava.

Customer Reviews

80 of 82 people found the following review helpful
5.0 out of 5 stars Even for the most experienced Java programmers, February 7, 2008
By 
This review is from: Core Java, Volume I--Fundamentals (8th Edition) (Paperback)
I am an extremely experienced Java programmer and Ph. D. computer scientist. I write and teach courses and develop technical assessments, so it's important to me to keep up with language developments. While I've bought a great many Java books over the years, I've been neglecting Core Java for many editions, thinking it would no longer be of any use and being tired of repurchasing books. I'm part way through this one, and I am astounded at how much I am discovering, especially about Java 5 & 6 (even though I thought I knew all about their new features). I'm also enjoying the detailed comparisons with C++, as I used to use and teach that too. No matter how much you know about Java I would strongly recommend this book, if only to read all the well-delineated comments and clarifications that appear frequently. A particularly nice feature is that where portions of the API are summarized there are indications of the version in which the feature was added -- it helped reduce my... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


38 of 38 people found the following review helpful
5.0 out of 5 stars java for programmers, October 21, 2007
By 
This review is from: Core Java, Volume I--Fundamentals (8th Edition) (Paperback)
"Core Java, Volume I - Fundamentals" is meant to teach Java to developers who already know another language. Or as they put it, "serious programmers ... with a solid background in a language other than Java." This is important as the book assumes a knowledge of programming concepts. As such, the authors can explain OO rather than how a loop works. The syntax diagrams and flow diagrams offer concise explanations.

This edition (the eighth of the book) covers Java 6. I liked that each section was updated to reflect changes to the languages. The authors didn't just tack on some chapters about the new features. They integrated features as they made sense. More importantly, they updated existing examples to reflect the way they would be written if they were initially written today. This gives the reader appropriate exposure as to when to use new features. At the same time, the authors point out what was added in Java 1.4 so you can use it with an older version. There... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


15 of 16 people found the following review helpful
4.0 out of 5 stars Excellent pace, detail, and presentation of Java topics, November 17, 2009
By 
Amazon Verified Purchase(What's this?)
This review is from: Core Java, Volume I--Fundamentals (8th Edition) (Paperback)
This book has been an excellent resource in my learning Java programming. I've been programming for over 20 years (yes, I used the original K&R C handbook to learn C), but I am new to Java. Using this book, working through the examples carefully (actually typing each of them into NetBeans and digesting the code piece by piece, modifying them here and there afterward to test ideas and enhance understanding), I can actually say that the topics are sinking in and the presented material (i.e. the Java skills , concepts, and syntax) is becoming second nature.

To give an honest impression: I did not, however, start completely fresh with this book. I first worked through the Java tutorial on Sun's website. I think that helped me grasp topics better when they were presented here in Core Java and I'd recommend doing something along those lines instead of relying strictly on this book (or any one source for that matter). In fact, for me personally, it helps to code and code and... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 39 customer reviews...

Online Sample Chapter

Understanding Inheritance in Java

Table of Contents

Preface xix

Acknowledgments xxv

 

Chapter 1: An Introduction to Java 1

Java As a Programming Platform 2

The Java “White Paper” Buzzwords 2

Java Applets and the Internet 7

A Short History of Java 9

Common Misconceptions about Java 11

 

Chapter 2: The Java Programming Environment 15

Installing the Java Development Kit 16

Choosing a Development Environment 21

Using the Command-Line Tools 22

Using an Integrated Development Environment 25

Running a Graphical Application 28

Building and Running Applets 31

 

Chapter 3: Fundamental Programming Structures in Java 35

A Simple Java Program 36

Comments 39

Data Types 40

Variables 44

Operators 46

Strings 53

Input and Output 63

Control Flow 71

Big Numbers 88

Arrays 90

 

Chapter 4: Objects and Classes 105

Introduction to Object-Oriented Programming 106

Using Predefined Classes 111

Defining Your Own Classes 122

Static Fields and Methods 132

Method Parameters 138

Object Construction 144

Packages 15

The Class Path 160

Documentation Comments 162

Class Design Hints 167

 

Chapter 5: Inheritance 171

Classes, Superclasses, and Subclasses 172

Object: The Cosmic Superclass 192

Generic Array Lists 204

Object Wrappers and Autoboxing 211

Methods with a Variable Number of Parameters 214

Enumeration Classes 215

Reflection 217

Design Hints for Inheritance 238

 

Chapter 6: Interfaces and Inner Classes 241

Interfaces 242

Object Cloning 249

Interfaces and Callbacks 255

Inner Classes 258

Proxies 275

 

Chapter 7: Graphics Programming 281

Introducing Swing 282

Creating a Frame 285

Positioning a Frame 288

Displaying Information in a Component 294

Working with 2D Shapes 299

Using Color 307

Using Special Fonts for Text 310

Displaying Images 318

 

Chapter 8: Event Handling 323

Basics of Event Handling 324

Actions 342

Mouse Events 349

The AWT Event Hierarchy 357

 

Chapter 9: User Interface Components with Swing 361

Swing and the Model-View-Controller Design Pattern 362

Introduction to Layout Management 368

Text Input 377

Choice Components 385

Menus 406

Sophisticated Layout Management 424

Dialog Boxes 452

 

Chapter 10: Deploying Applications and Applets 493

JAR Files 494

Java Web Start 501

Applets 516

Storage of Application Preferences 539

 

Chapter 11: Exceptions, Logging, Assertions, and Debugging 551

Dealing with Errors 552

Catching Exceptions 559

Tips for Using Exceptions 568

Using Assertions 571

Logging 575

Debugging Tips 591

Using a Debugger 607

 

Chapter 12: Generic Programming 613

Why Generic Programming? 614

Definition of a Simple Generic Class 616

Generic Methods 618

Bounds for Type Variables 619

Generic Code and the Virtual Machine 621

Restrictions and Limitations 626

Inheritance Rules for Generic Types 630

Wildcard Types 632

Reflection and Generics 640

 

Chapter 13: Collections 649

Collection Interfaces 650

Concrete Collections 658

The Collections Framework 689

Algorithms 700

Legacy Collections 707

 

Chapter 14: Multithreading 715

What Are Threads? 716

Interrupting Threads 728

Thread States 730

Thread Properties 733

Synchronization 736

Blocking Queues 764

Thread-Safe Collections 771

Callables and Futures 774

Executors 778

Synchronizers 785

Threads and Swing 794

 

Appendix 809

 

Index 813

Preface

Download the Preface

Downloadable Sample Chapter

Download Chapter 5: Inheritance

Index

Download the Index

 
Best Value

Book + eBook Bundle  $107.98  $64.79

Book Price $47.99
eBook Price $16.80
eBook formats included

Buy

This book includes free shipping!

Buy

Book  $59.99  $47.99

Usually ships in 24 hours.

This book includes free shipping!

Buy

eBook (Watermarked)  $47.99  $38.39

Includes EPUB, MOBI, and PDF
About eBook Formats

This eBook includes the following formats, accessible from your Account page after purchase:

ePubEPUBThe open industry format known for its reflowable content and usability on supported mobile devices.

MOBIMOBIThe eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

Adobe ReaderPDFThe popular standard, used most often with the free Adobe® Reader® software.

This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. 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. That's a total savings of $199.