Java Examples in a Nutshell A Companion Volume to Java in a Nutshell

By David Flanagan
January 1900
Pages: 397
ISBN 10: 1-56592-371-5 | ISBN 13: 9781565923713
starstarstarstarstar (Average of 5 Customer Reviews)

This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.

The latest edition is also available on Safari Books Online.

Description

From the author of Java in a Nutshell, this companion book is chock full of practical real-world programming examples to help novice Java programmers and experts alike explore what's possible with Java 1.1. If you learn best by example, this is the book for you.
Full Description

Java Examples in a Nutshell is chock full of practical real-world Java programming examples. The author of the bestselling Java in a Nutshell has created an entire book of example programs that you can learn from and modify for your own use. If you learn best "by example," this is the book for you. This book is a companion volume to Java in a Nutshell. While Java in a Nutshell is a quick-reference at heart, it also includes an accelerated introduction to Java programming. Java Examples in a Nutshell picks up where that book leaves off, providing a suite of example programs for novice Java programmers and experts alike. This book doesn't hold your hand or supply detailed explanations of Java syntax or method calls; it simply delivers well-commented working examples that help you explore the wide range of what is possible with Java 1.1. Each chapter concludes with programming exercises that suggest further avenues for building on what you have learned. Java Examples in a Nutshell contains all of the example programs from the first edition of Java in a Nutshell, completely updated for Java 1.1. In addition, the I/O, networking, and GUI chapters have been augmented to include even more practical examples. It also expands on the examples from the second edition of Java in a Nutshell that demonstrate the new features in Java 1.1, including the new AWT event handling model, the JavaBeans API, internationalization, object serialization, and reflection. In addition, this book provides never-before-published programming examples for remote method invocation, database connectivity, and security -- important elements of the Java Enterprise APIs. Finally, the book offers a glimpse of the features of "Swing," the set of new components that are part of the forthcoming Java Foundation Classes (JFC).



Featured customer reviews

Write a Review


Java Examples in a Nutshell Review,  July 30 2000
Rating: StarStarStarStarStar
Submitted by MIKE - Detroit   [Respond | View]

I'm working mostly in graphics and Java in a Nutshell has been the best book I've tried so far. It will also acquaint you with several important networking programming concepts if you've never programmed client/server stuff before - like me. However, I recommend you use Sun's appletviewer program to run the applets as your traditional browser is too lame to handle this stuff and will have lots of problems. Just go to java.sun.com and download it. Overall, very good book that doesn't bore you with too much detail or too much hand-holding -- the right balance.




Java Examples in a Nutshell Review,  July 25 2000
Rating: StarStarStarStarStar
Submitted by Heinz   [Respond | View]


I also want to deploy my best experience with this book. Drawback (as mentioned before): it doesn't deal with the current JDK. So it was not possible for me to run the MudServer, since a class MudServer_Stub is not found. I still wonder why the VM looks for this class, since it is never defined somewhere. So I guess it has to do with the new Java versions on my computer, but I am just at the beginning of my research. BTW, can anyone give me a hint?

Nevertheless: If you want to learn Java and you even have no idea about OO-programming, then this book together with Java in a nutshell, 3rd ed., are the (almost) definite runners.

Why almost? I really would like to urge David to have a new edition printed ;-)

Thanks for the books :-)


Java Examples in a Nutshell Review,  July 14 2000
Rating: StarStarStarStarStar
Submitted by lin   [Respond | View]

I just recently start purchasing computer books and I must say Oreilly books the top in the industry.
i am a person that learn best by examples, so instead of reading 800 page textbook, I learn so much more from just typing up examples (you can also download them but I prefer to type them up, short ones anyways) and running them.
Java examples are just a book of examples after example that teach you by doing, perfect book for me.



Read all reviews


Java Examples in a Nutshell Review,  June 14 2000
Rating: StarStarStarStarStar
Submitted by subhendu mukherjee   [Respond | View]

it is a good book-but all the programmes written
are lengthy-need some more explanations


Java Examples in a Nutshell Review,  June 03 2000
Rating: StarStarStarStarStar
Submitted by Chris   [Respond | View]

Loved Java in a Nutshell. But when I went over to the Java Examples and ran the examples with all the most current stuff, most of the examples had deprecated code in it so I couldn't run them. I spent most of my time going through Sun documentation reading about things that don't work anymore and how to make them work in the new version. I'm sure I learned more that way, but it's not something I'm looking for when I want to ramp up quick with a book. I can sift through Sun documentation anytime. I was hoping the book would help me avoid some of that. It didn't.


Java Examples in a Nutshell Review,  April 28 2000
Submitted by Gene Naden   [Respond | View]



As a person who has written C++ code, I have found the book very useful so far with few problems gettings the examples to work. (My platform is Win 95).

Really, this book is the breakthrough I have been looking for. For the first time I really can imaging myself understanding and teaching Java.

I have not gotten SendMail to work. I get a "hostname not found" error even though I verified the host name by looking in the details of a message in Outlook Express. I also pinged the host name successfully.


Java Examples in a Nutshell Review,  February 14 2000
Submitted by Jeff Zhu   [Respond | View]



For Matthew Rizzo's question:
You can run Ex 2.8 the LinkedList program in the
UNIX by the following command -
java LinkedList\$Test. Make sure you put '\' between LinkedList and $Test. You really don't need to comment those two lines.




Java Examples in a Nutshell Review,  December 30 1999
Submitted by Matthew Rizzo   [Respond | View]



I have to agree with the first few reviews, I have been codeing in C++ for about two years, and I am just starting with java. The code that I downloaded from the site has some bugs in it... I have personally made some nice bugs of my own, but when I tried to run the LinkedList program, I got an error, I figured that maybe this is how we are supposed to learn java, we work out the bugs and send back the code working...
Since the code is free on this site (and I can't understand why that is..) I would not recommend buying this book, get the java in a nutshell and download the code....
I also don't understand why the price printed on the book is 19.95 but everywhere 'cept Barnes and Noble wants to charge 24.95.... what is up with that???




Java Examples in a Nutshell Review,  December 29 1999
Submitted by Alan L. Craig   [Respond | View]



This is a very useful book with many good examples. If you are already familiar with Java it is a very good place to expand your knowledge.
I have a question though. What is a "nested class". They are used in this book quite a bit. For me, they compile fine but will not run. I have to comment out some lines to remove them. For example in Ex 2.8 the LinkedList program, I have to comment out two lines for the program to run. These two lines are:

public static class Test {

and the last

}

I have several Java books but I have never seen "nested classes" mentioned.


Java Examples in a Nutshell Review,  August 27 1999
Submitted by Stephen Allison   [Respond | View]



An excellent book. Easily the best book for someone with some programming knowledge to learn Java. it's great to have a tutorial style book with non-trivial examples.

Only gripe: could do with a second edition with more on Swing etc.


Java Examples in a Nutshell Review,  May 25 1999
Submitted by Ken Kham   [Respond | View]



An excellent book for my needs. Unlike most books on
Java I've come across which spent too much
times on buzz-words and deepen the hype (and confusion)
this book presents a no nonsense, to the point approach.
If all you want is get down to write some real programs like
myself, then this book is a must look at.


Java Examples in a Nutshell Review,  February 14 1999
Submitted by Nick Cox ncox3@csc.com (Portsmouth - UK)   [Respond | View]



A very nice piece of work. I love the intensity of the book,
the indepth examples and the willingness to hand-over tips,
tricks and methods, to cope with the whole Java area. As
always, time is a premium. Consequently, I need code to work
instantly so that I can see the picture, no erratas. Looking
forward to 1.2 book (JMF, JES, Swing tricks... etc).
My compliments to the chef. I learn much from you people.
Nick.


Java Examples in a Nutshell Review,  November 26 1998
Submitted by Amit   [Respond | View]



Has anyone gotten example 15.1 and 15.2 to work yet?

Thanks,
Amit.


See larger cover