Search our site
Out of the Blue by Sophie Cameron Read the opening extract of the brand new Sophie Cameron book before its publication on 22/03/2018

Java Examples in a Nutshell by David Flanagan


Java Examples in a Nutshell by David Flanagan

The author of the best-selling Java in a Nutshell has created an entire book of real-world Java programming examples that you can learn from. If you learn best by example, this is the book for you. This third edition covers Java 1.4 and contains 193 complete, practical examples: over 21,900 lines of densely commented, professionally written Java code, covering 20 distinct client-side and server-side APIs. It includes new chapters on the Java Sound API and the New I/O API. The chapters on XML and servlets have been rewritten to cover the latest versions of the specifications and to demonstrate best practices for Java 1.4. New and updated examples throughout the book demonstrate many other new Java features and APIs. Java Examples in a Nutshell is a companion volume to Java in a Nutshell, Java Foundation Classes in a Nutshell, and Java Enterprise in a Nutshell. It picks up where those quick references leave off, providing a wealth of examples for both novices and experts. This book doesn't hold your hand; it simply delivers well-commented working examples with succinct explanations to help you learn and explore Java and its APIs. Java Examples in a Nutshell contains examples that demonstrate: Core APIs, including I/O, New I/O, threads, networking, security, serialization, and reflection; Desktop APIs, highlighting Swing GUIs, Java 2D graphics, preferences, printing, drag-and-drop, JavaBeans, applets, and sound; Enterprise APIs, including JDBC (database access), JAXP (XML parsing and transformation), Servlets 2.4, JSP 2.0 (JavaServer Pages), and RMI. The book begins with introductory examples demonstrating structured and object-oriented programming techniques for new Java programmers. A special index at the end of the book makes it easy to look up examples that use a particular Java class or accomplish a desired task. In between, each chapter includes exercises that challenge readers and suggest further avenues for exploration.


This essential, learn-as-you-go tutorial invites new and seasoned Java developers to let go of worries about the complexity and sophistication of Java and simply jump in and try effective new programming techniques and code. It's a very good place to start if you're thinking of trying something new. Industrial Networking & Open Contol, April 2004

This is not, perhaps, for the gnarled old 'sandals and beard
developer at the back of the office, but if you

're a junior developer, or perhaps a highly experienced developer moving into Java for the first time, you won't find much better reading, and doing, than this. - Davey Winder, PC Plus, Nov (Rating 9/10)'

About the Author

David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and son in the U.S. Pacific Northwest between the cities of Seattle, Washington and Vancouver, British Columbia.

More books by this author
Author 'Like for Like' recommendations

Loading other formats...

Book Info

Publication date

31st January 2004


David Flanagan

More books by David Flanagan
Author 'Like for Like'


O'Reilly Media, Inc, USA


700 pages


Web programming



With literary excellence, humour and drama, Lovereading's got value and is a real stress-calmer!

Siobhan McDowell

Hooked on books? Give Lovereading a go - for the chance to discover brilliant books, and to see why our members love it so.

Claire Hill

Love Reading - it not only does what it says on the tin, it does it with Jam on!!

Maz Tucker

Lovereading takes the guesswork out of finding your next read with "if you like you'll love" and extracts to help with your decision.

Sarah Bruch

My favourite thing about is the 'like for like' page this has really introduced me to some good reads! That and lots of honest reviews.

Sam Lewis

Lovereading is an amazing place to be, the website is wonderful and to me if I'm sad I'll go here and it cheers me up!

Sophia Upton

I recommend Lovereading because you get honest reviews on a whole range of genres-there's something for everyone. It's the only site I need.

Sian Spinney

I read new, exciting writers and established authors before publication and there is a great website full of brilliant books and opinions.