Account
Computer Science & Technology

Java™ Coding Guidelines

75 Recommendations for Reliable and Secure Programs

Java coding guidelines built on 75 recommendations, each with a noncompliant and compliant code example, for reliable and secure Java programs.

  • 304pages
  • 6chapters
  • 75recommendations
  • 6sections

This book is for you if you are

  • This book is for you if you are a Java developer responsible for production code quality and security.
  • This book is for you if you are an architect or reviewer who must justify coding rules to a team.
  • This book is for you if you are an instructor or student learning secure coding practice.

Why this book

Java™ Coding Guidelines turns 75 numbered recommendations into working rules you can apply to Java code today. Five Java experts — Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland and David Svoboda — wrote it for developers who need programs that stay reliable once they leave the test environment. The book is organized around the risks that actually break Java systems: security holes, nondefensive code, and failures that surface only under load or concurrency.

Each guideline follows the same pattern: a rule, a noncompliant code example that shows the bug in context, a compliant solution, and a short note on the consequences of ignoring it. That structure is what separates this from a style manual. Style guides tell you how code should look; these guidelines explain what a defect costs you and how to close it. The six-part organization — Security, Defensive Programming, Reliability, Program Understandability, Programmer Misconceptions and Android — keeps the material usable as a reference instead of a read-once narrative.

Where competing pages stop at the marketing blurb, this edition gives you the reasoning behind each rule:

  • Numbered guidance you can cite directly in code review
  • Paired noncompliant and compliant examples for every recommendation
  • Coverage of unsafe language and library features in everyday Java code
  • A separate Android section for mobile-specific hazards
  • Cross-references that map each rule to its underlying weakness

Java developers, architects, security reviewers and instructors teaching secure coding get the most from it — especially teams that must defend design decisions to an auditor or a lead. Get your copy today.

What you'll learn

  • Apply 75 numbered recommendations to Java code you already maintain.
  • Recognize noncompliant code from its paired defective example.
  • Harden programs against common security weaknesses in Java.
  • Write defensive code that validates input and handles failure paths.
  • Diagnose reliability defects that appear under concurrency and load.
  • Improve program understandability with consistent, reviewable structure.
  • Spot latent programmer misconceptions about language and library behavior.

Not the right book for: developers looking for a language tutorial or style-guide-only reference

Questions about this book

How many recommendations does Java™ Coding Guidelines contain?

The book presents 75 numbered recommendations, each with a noncompliant and compliant code example.

What is a noncompliant code example in this book?

It is a short snippet that demonstrates the defect a given recommendation is meant to prevent.

Does the book cover security as well as reliability?

Yes. Security, Defensive Programming and Reliability are separate sections, alongside Program Understandability and Programmer Misconceptions.

Is there Android-specific guidance for Java developers?

Yes, a dedicated Android section covers coding hazards specific to mobile Java applications.

Who wrote Java™ Coding Guidelines?

Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland and David Svoboda, published by Addison-Wesley.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Securityp. 1
  2. 2Defensive Programmingp. 79
  3. 3Reliabilityp. 131
  4. 4Program Understandabilityp. 167
  5. 5Programmer Misconceptionsp. 209
  6. 6Androidp. 245

Details

Author
Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland, David Svoboda
Publisher
Addison-Wesley
Edition
2013
ISBN
9780321933157
Pages
304
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
2.14 MB
Licence
Personal use, keep forever

Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland, David Svoboda

Written by Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland and David Svoboda, and published by Addison-Wesley.

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all

Data Science on AWS

Chris Fregly and Antje Barth

PDF · 524 pages

$14.99 Regular price $64.99 −77%

You save $50.00

Add to cart

AI 2041

Kai-Fu Lee and Chen Qiufan

PDF · 476 pages

$9.99 Regular price $31.99 −69%

You save $22.00

Add to cart
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample