Programming Books C Java PHP Python Learn more Browse Programming Books

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $16.35 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java Programming: From the Beginning [Paperback]

K. N. King
4.8 out of 5 stars  See all reviews (29 customer reviews)

Buy New
$104.54 & FREE Shipping. Details
Only 3 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
In Stock.
Rented by RentU and Fulfilled by Amazon.
Want it Friday, July 11? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student


Amazon Price New from Used from
Paperback $104.54  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

July 13, 2000 0393974375 978-0393974379 0

Aimed at the traditional CS1 course, Java Programming emphasizes object-oriented design, problem-solving, and good programming style, without overwhelming students with extraneous information.

Assuming no prior programming experience, the book provides coverage of basic concepts in computer science as a springboard for more advanced discussion.

Frequently Bought Together

Java Programming: From the Beginning + Invitation to Computer Science
Price for both: $205.75

Buy the selected items together
  • Invitation to Computer Science $101.21

Editorial Reviews Review

Suitable for the classroom or for self-study, Java Programming from the Beginning puts basic Java development and object-oriented design into the hands of any computer-literate reader. Assuming no knowledge of computers--except, of course, an aptitude for programming and a willingness to learn--this textbook is one of the more accessible and well-presented introductions to Java available today.

The author is an experienced college teacher, and the book's effective presentation style is arguably its major strength. Early chapters rely on simple mathematical examples (such as converting temperatures from Fahrenheit to Celsius, or averaging grades). Other examples look at parsing social security numbers or storing entries from a telephone book. Java Programming does a good job of presenting the basics of object-oriented design in terms of both designing custom classes and taking advantage of existing Java classes, such as String, StringBuffer, and Vector objects. Of course, along the way, the basics of Java syntax are covered, including many of its keywords, operators, and data types.

Although it's suitable for a college classroom, this textbook is never academic or dull. The colloquial and friendly writing style presents the essentials of Java without ever getting bogged down in theory. Besides command-line programs, you'll learn also how to do basic graphics in Java, and even play simple games (like blackjack). The custom classes that are presented in this book make it simpler to work with Java, even for beginners. Every chapter provides extensive review summaries of the important points that are demonstrated in each section, as well as a handful of exercises that'll let you try out material on your own.

Now that Java is used routinely as a first programming language in many colleges, Java Programming from the Beginning fills a useful niche. It's also an excellent home-study choice for the reader who appreciates a patient and thorough teaching style. --Richard Dragan

Topics covered:
  • Basics of computer hardware and software
  • Graphical user interfaces vs. text-based interfaces
  • General introduction to programming languages
  • Basic Java language features and syntax
  • Calculations
  • Constants
  • Methods
  • Console I/O
  • Computing averages
  • Syntax errors and debugging
  • Introduction to object-oriented design: classes, objects, and instance methods
  • Working with the Java String and StringBuffer classes
  • Basic control structures
  • Comparison
  • Relational and equality operators
  • Operator precedence
  • Loops and counting variables
  • Decoding social security numbers
  • Using Java arrays and the Vector class
  • Using arrays for a database
  • Arrays of objects
  • Sample case study for a telephone directory
  • Drawing basic shapes, colors, and text
  • A message window example

  • Class variables and methods
  • Passing arguments to methods
  • Helper methods
  • Principles for designing methods in Java
  • Exception-handling basics
  • The switch statement
  • Using the Java primitive types
  • Writing custom classes
  • The this keyword
  • Constructors
  • Code reuse
  • Sample code for blackjack
  • Inheritance and subclasses
  • Polymorphism
  • Abstract classes
  • The final classes
  • Introduction to the Abstract Windowing Toolkit (AWT)
  • Frames and event handlers
  • Layout managers
  • Data structures, sorting, and searching
  • Using sets (and bit sets)
  • File I/O in Java (opening, reading, and writing files)
  • Installing the Sun JDK
  • Custom classes for simplified introductory Java programming
  • From the Author

    Since 1996, I've taught Java to hundreds of college students and working professionals. I've found that nearly all Java books on the market are too difficult for someone with no previous programming experience. "Java Programming: From the Beginning" is designed to fill that gap.

    If you're searching for a book that covers all the trendy new Java features, you'll need to look elsewhere. If you want a book that's broad but shallow, you've come to the wrong place. But if you're interested in learning the fundamentals of Java and of programming in general, welcome home.

    I've tried to explain Java in clear, simple language, using plenty of interesting programs to illustrate the features of the language. I've avoided using a "cookbook" approach: the emphasis is on understanding, not merely imitating.

    Although "Java Programming: From the Beginning" is for the novice, it isn't one of those watered-down "dummies" books. It assumes that the reader is an intelligent person who simply lacks programming experience. If "gentle but thorough" didn't sound so much like a laxative slogan, it would be the perfect description for this book. Starting from the beginning, it covers all the fundamental knowledge that a Java programmer needs.

    Each chapter of "Java Programming: From the Beginning" ends with a Q&A section--a series of questions and answers related to material covered in the chapter. Other key features include:

    * Warnings
    * Style tips
    * Design tips
    * Cross-references
    * Debugging sections
    * Case studies
    * Nearly 400 review questions (with answers provided) and 200 exercises
    * Over 130 programming projects

    For more information about "Java Programming: From the Beginning," please visit the author's Web site (

    Product Details

    • Paperback: 816 pages
    • Publisher: W. W. Norton & Company (July 13, 2000)
    • Language: English
    • ISBN-10: 0393974375
    • ISBN-13: 978-0393974379
    • Product Dimensions: 9.2 x 7.5 x 1.2 inches
    • Shipping Weight: 2.7 pounds (View shipping rates and policies)
    • Average Customer Review: 4.8 out of 5 stars  See all reviews (29 customer reviews)
    • Amazon Best Sellers Rank: #268,123 in Books (See Top 100 in Books)

    More About the Author

    Discover books, learn about writers, read author blogs, and more.

    Customer Reviews

    Most Helpful Customer Reviews
    26 of 26 people found the following review helpful
    5.0 out of 5 stars Very good introduction to Java Programming February 16, 2001
    This is a very introductory text on java programming. KN King has written this book in the same style as his excellent text on C programming. This is as good an introduction to Java as one can get - but one needs to keep in mind that this does not cover any of the standard libraries like swing, awt, etc. or advanced topics like threads, databases. It is pitched to a person who is new to computer programming. With this caveat in mind King's coverage of classes, objects, control structures is very good. The organization of the material, explanation, examples, and the colloquial presentation are the highlights of this text.
    Comment | 
    Was this review helpful to you?
    32 of 35 people found the following review helpful
    5.0 out of 5 stars K.N. King does it again! August 7, 2000
    Once again K.N. King produced a masterpiece. This book is the best book that I have ever read for students with no prior programming experience. In addition I believe that professional non-Java programmers can gain unique insight and a bottom up understanding of the Java language and of object oriented concepts by reading this book. The text is clear, thorough, and chock full of great examples and projects. If you want to learn Java this book will take you there. You will not learn applets, servlets, EJB, etc. However when you finish you will have a deep understanding of the language and will be more ready then most people to tackle the other technologies.
    Comment | 
    Was this review helpful to you?
    17 of 17 people found the following review helpful
    5.0 out of 5 stars Concise and well-organized October 24, 2001
    I chose this as a textbook for our introductory programming course here, and I've not been disappointed. Though I don't ask my students to read it, many of them have been - and that itself speaks volumes for how readable this book is.
    Most books tend to get overfull with needless details. King generally avoids this, parceling out the information without getting bogged down. Often, King splits what would normally be a chapter into two halves: The important half comes at the beginning, and the less important alternatives come later. It works well.
    My biggest complaint is that the book takes longer getting to worthwhile programs than I'd like. Don't expect to write programs to do vaguely interesting things until around page 150 (when the author finally gets around to incorporating repetition into programs).
    King has definitely been selective in choosing what to cover. This certainly isn't one of those encyclopedic textbooks. It's enough for a semester, and that's it. (Some examples of what King basically skips: recursion, throwing exceptions, bit operators, defining interfaces.) I consider this selectivity to be a feature; it certainly distinguishes this book from much of the competition.
    I've looked at a lot of Java textbooks for beginning programmers. Most seem to have been published in the hurry to capture some of the market. This is not among them. It's an excellent choice for those who want to learn how to program.
    Comment | 
    Was this review helpful to you?
    11 of 11 people found the following review helpful
    5.0 out of 5 stars Excellent for newcomers to programming September 18, 2002
    By kboston
    I came to this book with almost no programming experience but good analytical abilities. I wanted to learn the equivalent of what is covered by a CS1 course, and this book fit my needs exactly. This book is an interesting read, clearly introduces topics, and avoids unnecessary wordiness. The exercises and programming projects are thorough. There are always one or two more lengthy projects included in each chapter for those who want the challenge. I used this book to learn Java on my own, and I found myself eager to open it each day. I agree that there is no coverage of Swing, but there are other books devoted to that topic which one could move on to. I highly recommend this for those who are new to object-oriented programming and want their first taste of what this field is about.
    Comment | 
    Was this review helpful to you?
    8 of 8 people found the following review helpful
    5.0 out of 5 stars Great Work November 27, 2000
    By dupaski
    As a someone new to programing I deeply appreciate the approach taken by Mr. King. By concentrating on the fundamentals of the language his book gives one the solid foundation needed before moving on to more advanced areas. Upon finishing this book I have no doubt that my learning curve has been greatly reduced. This book will be as good for a long time to come due to the fact that it dosen't get caught up with what's "hot" in the industry this month. Rather, it gives one the understanding and tools to do whatever one wants with Java. Thanks Mr. King.
    Comment | 
    Was this review helpful to you?
    10 of 11 people found the following review helpful
    5.0 out of 5 stars It's so good !!! July 4, 2001
    By HuyDang
    I am a beginner of Java Programming. I've read many books which are for the beginner and I especially find this one among those to be my pleasure ! With a simple style, the author (K.N.King) leads me into an intertesting world of Java ! It's indeed great and worth being purchased !
    Comment | 
    Was this review helpful to you?
    8 of 9 people found the following review helpful
    5.0 out of 5 stars Get it! July 2, 2001
    This is by far the best "first" java book out there. The author makes java easy to understand and apply He's a gifted writer of science, perhaps at the level of the late Linus Pauling. Very impressive. I hope there is a sequel.
    Comment | 
    Was this review helpful to you?
    8 of 9 people found the following review helpful
    5.0 out of 5 stars Good for Java Beginners May 22, 2001
    This is a great book for java beginners. But people with programming backgroud, may find parts of the book too lengthly. Overall its a great book and I have benefitted immensely from it.
    Comment | 
    Was this review helpful to you?
    Most Recent Customer Reviews
    5.0 out of 5 stars Makes learning Java's basics easy.
    This book makes learning the basics of Java easy. It may because I learned C with one of K.N.King's books. give it try.
    Published 3 months ago by Paul D. Shannon
    5.0 out of 5 stars Fraction of the cost
    Book delivered in perfect condition at a fraction of the cost, Great book for anyone hoping to have a very basic understanding to Java!
    Published 8 months ago by Michael Scray
    3.0 out of 5 stars It's an okay book
    To be honest, it does explain things well. However, it's outdated, and only God knows why colleges are still using this book instead of an updated on (the main reason is that this... Read more
    Published 9 months ago by Khalinda Young
    4.0 out of 5 stars A good buy!
    I thought this book was good and i gave the rating that I did because it was delivered in good condition. I would recommend this book to anyone new to java programming.
    Published 15 months ago by Saharath
    5.0 out of 5 stars I love it
    book arrived on time and it was like brand new. I saved a lot of money as well. Thanks. ye
    Published 17 months ago by Efrem Beraki
    5.0 out of 5 stars 12 years later and still relevant
    I got this book as a complete introduction to Java and programming almost a year ago. This book assumes literally NO knowledge of programming or computers in general. Read more
    Published 20 months ago by Jake Wilson
    5.0 out of 5 stars Great book for beginners
    I am truly a beginner to programming. I took some classes in college many moons ago but never took a liking to the languages (cobol, basic, pascal), until I started working in... Read more
    Published on June 5, 2012 by Anonymous
    5.0 out of 5 stars excellent
    This transaction was smooth, I received my book in 2 days and the condition of the book for a used book is next to new. I was surprised by how good the book was kept. Read more
    Published on November 18, 2010 by penny
    4.0 out of 5 stars Excelent content a thinkness
    I would like recomend the reading of this book to everybody who realy wants to learn Java Programming, it is very consice and usefull.
    Published on May 10, 2009 by Cirino Silva Tovar
    5.0 out of 5 stars Excellent book
    This book is the very best for some one who plans to start programming in Java.
    Published on November 11, 2008 by Marco Chacin
    Search Customer Reviews
    Search these reviews only

    What Other Items Do Customers Buy After Viewing This Item?

    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


    There are no discussions about this product yet.
    Be the first to discuss this product with the community.
    Start a new discussion
    First post:
    Prompts for sign-in

    Look for Similar Items by Category