See buying choices for this item to see if it's one of the millions that are eligible for Amazon Prime.

59 used & new from $0.01

Have one to sell? Sell yours here
 
 
Core Java 2, Volume 1: Fundamentals (5th Edition) (The Sun Microsystems Press Java Series)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Core Java 2, Volume 1: Fundamentals (5th Edition) (The Sun Microsystems Press Java Series) (Paperback)

by Cay Horstmann (Author), Gary Cornell (Author)
4.4 out of 5 stars See all reviews (34 customer reviews)


Available from these sellers.


13 new from $3.01 46 used from $0.01

Customers Who Bought This Item Also Bought

Core Java(TM) 2, Volume II--Advanced Features (7th Edition) (Core Series)

Core Java(TM) 2, Volume II--Advanced Features (7th Edition) (Core Series)

by Cay S. Horstmann
4.1 out of 5 stars (49)  $37.11
Core Java 2 : Volume 1 Fundamentals

Core Java 2 : Volume 1 Fundamentals

by Cay S. Horstmann
Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications

by Kenneth H. Rosen
3.2 out of 5 stars (91)  $116.60
Core Java(TM) 2, Volume I--Fundamentals (7th Edition) (Core Series) (Core Series)

Core Java(TM) 2, Volume I--Fundamentals (7th Edition) (Core Series) (Core Series)

by Cay S. Horstmann
4.4 out of 5 stars (53)  $37.11
Explore similar items

Editorial Reviews

Product Description
*The experienced developer's guide to Java programming-now fully updated for JDK 1.3

*Completely revised coverage of object-oriented development and Swing classes
*More of the robust code examples professional programmers need
*CD-ROM includes all source code, J2SE Version 1.3, Forte for Java Community Edition, and much more!

Raves for the previous edition!

"Devoid of shaky, academic examples and packed with robust demonstrations that illustrate hundreds of powerful concepts ...The authors back up the many examples with sharp, fact-rich commentary on how to get things done with Java." -David Wall, Amazon.com

The best-selling guide for serious Java 2 programmers-fully updated for JDK 1.3!

Ask any experienced Java programmer: Core Java delivers the real-world guidance you need to accomplish even the most challenging tasks. That's why it's been an international best seller for five straight years. Core Java 2, Volume 1 covers the fundamentals of Java 2, Standard Edition, Version 1.3 and includes completely revised discussions of object-oriented Java development, enhanced coverage of Swing user interface components, and much more.

This new fifth edition delivers even more of the robust, real-world programs previous editions are famous for-updated to reflect deployment and performance enhancements. Volume 1 includes thorough explanations of inner classes, dynamic proxy classes, exception handling, debugging, the Java event model, Input/Output, file management, and much more. For experienced programmers, Core Java 2, Volume 1: Fundamentals sets the standard-again! State-of-the-art information for Java developers, including:

*Building GUI applications with Swing classes
*Making the most of dynamic proxy classes and inner classes
*Mastering the Java event model
*Understanding Java streams and file management About the CD-ROM CD-ROM contains complete source code examples, the Java 2, Standard Edition, Version 1.3 SDK, and useful tools, including Forte for Java, Community Edition, a complete to olset for Java application development, TextPad 4.32, HexWorkshop 3.1, WinZip 8.0, To gether J, and SourceAgain.

From the Inside Flap
To the Reader

In late 1995, the Java programming language burst onto the Internet scene and gained instant celebrity status. The promise of Java is that it will become the universal glue that connects users with information, whether that information comes from Web servers, databases, information providers, and any other imaginable source. Indeed Java is in a unique position to fulfill this promise. It is an extremely solidly engineered language that has gained acceptance by all major vendors, except for Microsoft. Its built-in security and safety features are reassuring both to programmers and to the users of Java programs. Java even has built-in support that makes advanced programming tasks, such as network programming, database connectivity, and multithreading, straightforward.

Since then, Sun Microsystems has released four major revisions of the Java Software Development Kit. Version 1.02, released in 1996, supported database connectivity and distributed objects. Version 1.1, released in 1997, added a robust event model, internationalization, and the Java Beans component model. Version 1.2, released at the end of 1998, has numerous enhancements, but one major improvement stands out: the "Swing" user interface toolkit that finally allows programmers to write truly portable GUI applications. Version 1.3, released in the spring of 2000, delivered many incremental improvements.

The book you have in your hand is the first volume of the fifth edition of the Core Java book. Each time, the book followed the release of the Java development kit as quickly as possible, and each time, we rewrote the book to take advantage of the newest Java features.

As with the previous editions of this book, we still target serious programmers who want to put Java to work on real projects. We still guarantee no nervous text or dancing tooth-shaped characters. We think of you, our reader, as a programmer with a solid background in a programming language. But you do not need to know C++ or object-oriented programming. Based on the responses we have received to the earlier editions of this book, we remain confident that experienced Visual Basic, C, or COBOL programmers will have no trouble with this book. (You don't even need any experience in building graphical user interfaces in Windows, Unix, or the Macintosh.)

What we do is assume you want to:

Write real code to solve real problems

and

Don't like books filled with toy examples (such as kitchen appliances or fruit trees).

You will find lots of sample code on the accompanying CD that demonstrates almost every language and library feature that we discuss. We kept the sample programs purposefully simple to focus on the major points, but, for the most part, they aren't fake and they don't cut corners. They should make good starting points for your own code.

We assume you are willing, even eager, to learn about all the advanced features that Java puts at your disposal. For example, we give you a detailed treatment of:

Object-oriented programming

Reflection and proxies

Interfaces and inner classes

The event listener model

Graphical user interface design with the Swing UI toolkit

Exception handling

Stream input/output and object serialization

We still don't spend much time on the fun but less serious kind of Java programs whose sole purpose is to liven up your Web page. There are quite a few sources for this kind of material already—we recommend John Pew's book Instant Java, also published by Sun Microsystems Press/Prentice Hall.

Finally, with the explosive growth of the Java class library, a one-volume treatment of all the features of Java that serious programmers need to know is no longer possible. Hence, we decided to break the book up into two volumes. The first volume, which you hold in your hands, concentrates on the fundamental concepts of the Java language, along with the basics of user-interface programming. The second volume goes further into the enterprise features and advanced user-interface programming. It includes detailed discussions of:

Multithreading

Network programming

Distributed objects

Collection classes

Databases

Advanced graphics

Advanced GUI components

Internationalization

Native methods

JavaBeans

When writing a book, errors and inaccuracies are inevitable. We'd very much like to know about them. But, of course, we'd prefer to learn about each of them only once. We have put up a list of frequently asked questions, bugs fixes, and workarounds in a Web page at horstmann/corejava.html. Strategically placed at the end of the FAQ (to encourage you to read through it first) is a form you can use to report bugs and suggest improvements. Please don't be disappointed if we don't answer every query or if we don't get back to you immediately. We do read all e-mail and appreciate your input to make future editions of this book clearer and more informative.

We hope that you find this book enjoyable and helpful in your Java programming. About This Book

Chapter 1 gives an overview of the capabilities of Java that set it apart from other programming languages. We explain what the designers of the language set out to do and to what extent they succeeded. Then, we give a short history of how Java came into being and how it has evolved.

In Chapter 2, we tell you how to install Java and the companion software for

this book from the CD-ROM onto your computer. Then we guide you through compiling and running three typical Java programs, a console application, a graphical application, and an applet.

Chapter 3 starts the discussion of the Java language. In this chapter, we cover the basics: variables, loops, and simple functions. If you are a C or C++ programmer, this is smooth sailing because the syntax for these language features is essentially the same as in C. If you come from a non-C background such as Visual Basic or COBOL, you will want to read this chapter carefully.

Object-oriented programming (OOP) is now in the mainstream of programming practice, and Java is completely object oriented. Chapter 4 introduces encapsulation, the first of two fundamental building blocks of object orientation, and the Java language mechanism to implement it, that is, classes and methods. In addition to the rules of the Java language, we also give advice on sound OOP design. Finally, we cover the marvelous javadoc tool that formats your code comments as a set of hyperlinked web pages. If you are familiar with C++, then you can browse through this chapter quickly. Programmers coming from a non-object-oriented background should expect to spend some time mastering OOP concepts before going further with Java.

Classes and encapsulation are only one part of the OOP story, and Chapter 5 introduces the other, namely, inheritance. Inheritance lets you take an existing class and modify it according to your needs. This is a fundamental technique for programming in Java. The inheritance mechanism in Java is quite similar to that in C++. Once again, C++ programmers can focus on the differences between the languages.

Chapter 6 shows you how to use Java's notion of an interface. Interfaces let you go beyond the simple inheritance model of Chapter 5. Mastering interfaces allows you full access to the power of Java's completely object-oriented approach to programming. We also cover a useful technical feature of Java here. These are called inner classes. Inner classes help make your code cleaner and more concise.

In Chapter 7, we begin application programming in earnest. We show how you can make windows, how to paint on them, how to draw with geometric shapes, how to format text in multiple fonts, and how to display images.

Chapter 8 is a detailed discussion of the event model of the AWT, the abstract windows toolkit. (We discuss the event model that was added to Java 1.1, not the obsolete and simplistic 1.0 event model.) You'll see how to write the code that responds to events like mouse clicks or key presses. Along the way you'll see how to handle basic GUI elements like buttons and panels.

Chapter 9 discusses the Swing GUI toolkit in great detail. The Swing toolkit is how you can use Java to build a cross-platform graphical user interface. You'll learn all about the various kinds of buttons, text components, borders, sliders, list boxes, menus, and dialog boxes. However, some of the more advanced components are discussed in Volume 2.

After you finish Chapter 9, you finally have all mechanisms in place to write applets, those mini-programs that can live inside a Web page, and so applets are the topic of Chapter 10. We show you a number of useful and fun applets, but more importantly, we show you what goes on behind the scenes. And we show you how to use the Java Plug-in that enables you to roll out applets that take advantage of all the newest Java features, even if your users use old browsers or browsers made by hostile vendors.

Chapter 11 discusses exception handling, Java's robust mechanism to deal with the fact that bad things can happen to good programs. For example, a network connection can become unavailable in the middle of a file download, a disk can fill up, and so on. Exceptions give you an efficient way of separating the normal processing code from the error handling. Of course, even after hardening your program by handling all exceptional conditions, it still might fail to work as expected. In the second half of this chapter, we give you a large number of useful debugging tips. Finally, we guide you through sample sessions with various tools: the JDB debugger, the debugger of the Forte development environment, a profiler, a code coverage testing tool and the AWT robot.

We finish the book with input and output handling. In Java, all I/O is handled through so-called streams. Streams let you deal in a uniform manner with communicating with any source of data, such as files, network connections, or memory blocks. We include detailed coverage of the reader and writer classes, which make it easy to deal with Unicode; and we show you what goes on under the hood when you use object serialization mechanism, which makes saving and loading objects easy and convenient.

An appendix lists the Java language keywords.CD-ROM

The CD-ROM on the back of the book contains the latest version of the Java Software Development Kit. At the time we are writing this, these materials are available only for Windows 95/NT or Solaris 2.

Of course, the CD-ROM contains all sample code from the book, in compressed form. You can expand the file either with one of the familiar unzipping programs or simply with the jar utility that is part of the Java Software Development Kit.

The CD-ROM also contains a small selection of "best of breed" programs that you may find helpful for your development. Generally, these programs require that you pay the vendors some amount of money if you use them beyond a trial period. We have no connection with the vendors, except as satisfied users of their products. Please contact the vendors directly with any questions you may have about the programs.

NOTE: People have often asked what the licensing requirements for using the sample code in a commercial situation are. You can freely use any code from this book for non-commercial use. However, if you do want to use the code as a basis for a commercial product, we simply require that every Java programmer on the development team for that project own a copy of Core Java.

See all Editorial Reviews


Product Details

  • Paperback: 832 pages
  • Publisher: Prentice Hall PTR; 5 edition (December 18, 2000)
  • Language: English
  • ISBN-10: 0130894680
  • ISBN-13: 978-0130894687
  • Product Dimensions: 9.2 x 7 x 2.2 inches
  • Shipping Weight: 3.5 pounds
  • Average Customer Review: 4.4 out of 5 stars See all reviews (34 customer reviews)
  • Amazon.com Sales Rank: #256,076 in Books (See Bestsellers in Books)

Look Inside This Book



Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

34 Reviews
5 star:
 (23)
4 star:
 (7)
3 star:
 (1)
2 star:
 (1)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
4.4 out of 5 stars (34 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
22 of 22 people found the following review helpful:
5.0 out of 5 stars Excellent JAVA Book for VB and C++ Coders!, August 19, 2001
If you have a background in either C++ or even Visual Basic and need to learn JAVA, this book is for you!

I have a background in both and needed to add JAVA to my skillset for work. I bought Ivor's Beginner JAVA from Wrox (usually my favorite publisher) but found the book full of errors and typos. To top it off all the examples were very math related and didn't give me a "real-world" sense for what JAVA could do for me.

This book is just the opposite. With great insight and tips for people with VB and C++ backgrounds, easy (and fun) reading, and in-depth coverage of the language, this book was the answer to my cries.

The Authors are very adept with the language and have excellent writing skills. Volume I game me what I needed to begin my path towards the interpreted dark side :), but Volume II is definately needed for Client-Server coding, and more advanced topics.

I would definately recommend this book to anyone with prior OOP experience (even a little) who need to learn the JAVA langugage.

I was also very impressed by the non-hype, and the lack of Microsoft bashing. Core JAVA 2 is a must read.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
40 of 49 people found the following review helpful:
5.0 out of 5 stars Outstanding, April 13, 2001
By A Customer
I learned JAVA with the 2 CORE JAVA books (1 & 2)

The reader form PA who rated it a 1 star book is nuts.

>First off, does it have to be so fat? I don't think so. I am tired of the bloated technical books. Our time is too valuable.

Its comprehensive, well written, full of examples, and actually FUN to read. Very rare for a technical work.

>Second, the examples are bad and explanations are horrible.

No the examples are comprehensive and excellent. Very helpful for some of the Swing/AWT classes.

>Note how the authors explain how local anonymous inner classes should be avoided and then use them in every example afterwards.

In general Anonymous inner classes should be avoided, but small ones are ok, and the authors give an example. If you dont want to make the class anonymos then dont. Its just an example, and they explain all you need.

>Notice how OO principles are disregarded in the first big example.

No I didnt notice, they do an excellent job explaining OO principles.

> Notice how the chapter on inheritance talks extensively about reflectivity which has only tangential bearing. Also, there is a lot of "This doesn't work here, but don't worry about that now" and "I know we didn't bring this up yet, but you will see this 5 chapters on". It's called forethought - try it!

No its called complesity. Rather than assuming the readers have extensive OO experience they provide some background. To throw in everything would be too complex at the start.

>Third, too much time spent on GUI topics.

I disagree. Its an important subject and complex. To spend less time would be worthless. I found the GUI coverage to be good, and bought the 4 volume set to get complete coverage.

>This takes up nearly half the book. I have to buy the equally bloated Volume 2 to learn enterprise programming.

The combined books are 1500 pages. GUI takes up a chunk, several hundered pages. Skip it if you dont care.

>Forth, no diagrams. Perhaps a sprinkling of UML would help understand what is going on.

I had no problem understanting what was going on. Well written, lots of examples, and screen shots. Far more useful than some diagrams. Not everyone knows UML either. Spend a few minutes reading the code examples and its easy to follow.

>Fifth, the authors do not concentrate on the basics.

Sure they do. After reading the book I had an indepth understanding of many aspects of Java. They cover all the Basics, but in depth.

> The authors rather give you some code so you can say "Look what I can do!". In a book so large, I would expect to gather a sound understanding of how everything fits together. Where are the examples of Linked Lists, Stacks, and Queues?

They cant give examples of everything, use some of the classes they give you, don't reinvent the wheel. Look at Suns website for examples of code.

>Juxtapose this with a typical C++ book.

This is more interesting and fun.

>Sixth, there should be a reference to programming style.

Just observe how the authors code. The book cant cover everything. They do explain about writing good code. The dont mention indenting with spaces rather than tabs, who cares.

>Instead I have to get the official short document from Sun's site. An excellent source.

>I expected a lot more from a book from Sun.

This guy must work for Microsoft. Its one of the best technical books Ive read. Anything I need to do is covered.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
10 of 10 people found the following review helpful:
5.0 out of 5 stars Great book, August 9, 2001
By Vincent S. Yeung (Cambridge, MA United States) - See all my reviews
The book says it's geared towards more experienced programmers, and this is quite true. The authors don't really spend time going over the basics but instead directly dive into the meat of Java programming.

As the cover claims, the authors use more "practical" examples in their code. For example, instead of using trees and animals to demonstrate object hierarchies and inheritance, they use an employee class (although that is actually quite common).

The concepts are explained clearly with little junk or excess information. That's what makes this book a gem. Every sentence is helpful.

While some people did not enjoy them, I particularly liked the "C/C++" and "VB" notes since I have background in both langauges. They illustrate key differences between these languages and Java. For example, one C++ note mentioned that you can only call constructors using the new keyword, and another mentioned that there is no destructor method in Java due to automatic garbage collection.

Although this book is titled Volum I--Fundamentals, it covers quite a lot. There is extensive coverage of using Swing to build UI's and other things like also streams.

In sum, this is a great book to learn Java with, particularly for those with prior programming experience and only want to know the useful stuff about Java.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Excellent
This is an excellent book that provides plenty of depth while being extremely readable. This book is designed for people with some programming experience. Read more
Published on April 28, 2004

5.0 out of 5 stars For serious developers -- Not a recipe book
I bought this book while in college as a supplement to my course textbook and years later while working in the industry I find it an invaluable reference.

Highly recommend!

Published on April 28, 2003 by T. Radke

5.0 out of 5 stars There is a NEW EDITION
This is a great book but there is a new edition. Go to ISBN number 0130471771.
Published on September 14, 2002 by Martha S. Pepper

5.0 out of 5 stars best book for java
I have read more than 10 books on Java . This is the best book i have read on java
Published on August 27, 2002 by ume jay

5.0 out of 5 stars Excellent.
Well, that says it all. I'm a computer science student with a background in other programming languages, and I found the "CORE" series to be generally wonderful reading... Read more
Published on July 3, 2002 by kul_th_las

5.0 out of 5 stars excellent book
This book was the assigned text for my university java course and the book turned out to be excellent. Read more
Published on June 3, 2002 by Darren C. Lyn

5.0 out of 5 stars Best Java Book out there bar none
I have plenty of JAVA books and I use this and vol 2 so much more than all my other ones combined. The explanations, examples, coverage of topics are great. Read more
Published on April 10, 2002 by Brian Mello

5.0 out of 5 stars Excellent - This book is not for absolute begineers
This book is not for people who are completely new to Object Oriented Programming. I would recommend you to read Java Reference first (it explains all the basics) and then come... Read more
Published on April 5, 2002 by rohit thakare

1.0 out of 5 stars I want my time back
Anyone who thinks this book is ideal for a beginning student better think again. My school inflicted this book upon my class and I and it caused most of the class to give up on... Read more
Published on March 18, 2002

4.0 out of 5 stars "A Reader" is wrong
"A reader" from Philadelphia, PA United States wrote:

>First off, does it have to be so fat? I don't think so.
>I am tired of the bloated technical books. Read more

Published on March 15, 2002

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
C# or Java? 32 9 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)

Listmania!



Look for Similar Items by Category


Amazon MP3 Delivers Free Songs

Subscribe to The Amazon MP3 Download newsletter to find out about free song downloads, new releases and hot digital music deals first.
subscribe
 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Powerful Precision

Shop for circular saws
When working with lumber, a circular saw is a very handy tool with a variety of uses.

Shop for circular saws

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates