100 Java Mistakes and How to Avoid Them

ANT

4.4 10
$35.39 $58.99You save $23.60
Format
Digital edition
PDFEPUB
Works on phone, tablet and computer Instant access after checkout Personal-use digital license
About this edition

• Instant access to your digital edition.
• Read anytime, anywhere, on your favorite device.
• No shipping — your book is delivered digitally.
• Simple, secure access after purchase.

Published date April 30, 2024
Author Tagir Valeev
$35.39 $58.99

Instant digital delivery after purchase.

Download link available immediately after checkout.
In stock
Quantity
Secure checkout — encrypted end to end Free exchange or return within 30 days if the product is defective. Digital formats available instantly
Readers also enjoyed

Discover another great read to add to your digital library.

$35.39 $58.99

Description

Dodge the common mistakes that even senior developers make, take full advantage of static analysis tools, and deliver robust and error-free Java code.

Whenever you make a mistake writing Java, it’s almost guaranteed that someone else has made it before! In 100 Java Mistakes and How To Avoid Them you’ll learn about the common and the not-so-common antipatterns, errors, and tricky bits that trip up almost every Java developer.

Inside 100 Java Mistakes and How To Avoid Them you will learn how to: Write better Java programs Recognize common mistakes during programming Create fewer bugs and save time for debugging and testing Get help from static analyzers during programming Configure static analysis tools to reduce the number of false reports Extend static analysis tools with custom plugins
Each Java mistake in this handy guide comes with an illustrative code sample, an explanation of why the mistake occurs, and an actionable “ways to avoid this” section to help you dodge the error. Plus, you’ll benefit from useful static analysis sidebars that let you know when mistakes will—and won’t—be spotted by static analysis tools.

Foreword by Cay Horstmann.

About the technology

Minor bugs in development can become major problems in production. It’s much better to spot and fix your mistakes before they get that far! This one-of-a-kind book shines a light on the most common Java slip-ups and shows you exactly how to avoid making them in the first place.

About the book

100 Java Mistakes and How To Avoid Them highlights 100 Java coding errors—from beginner missteps to mistakes even Java experts don’t know they’re making. Each case includes clear examples to show you what to look for and concrete troubleshooting advice. You’ll learn to use static analysis tools like IntelliJ IDEA and SonarLint to ensure you’re consistently delivering exceptional Java, discover how unit tests and defensive coding can keep your code clean, and even learn to write your own bug-busting plugins.

What's inside Recognize bugs and antipatterns during programming Highly-effective debugging and testing Get help from static analyzers
About the reader

For Java developers of all skill levels.

About the author

Tagir Valeev is a technical lead in JetBrains and a Java Champion. He designed and developed many code inspections for IntelliJ IDEA built-in static analyzer.

The technical editor on this book was Jean-François Morin .

Table of Contents

1 Managing code quality
2 Expressions
3 Program structure
4 Numbers
5 Common exceptions
6 Strings
7 Comparing objects
8 Collections and maps
9 Library methods
10 Unit testing
A Static analysis annotations
B Extending static analysis tools

Specifications

FormatEPUB, PDF
Pages352
LanguageEnglish
ISBN-13978-1633437968

Frequently asked

Do I need an account to download?

No. After purchase, you can access your ebook directly from the order confirmation or download page.

What if a copy arrives damaged?

Contact us and we’ll help you access the file or provide a replacement download if needed.

Reviews

4.4 7
5★84%4★11%3★3%2★1%1★1%
J Joana K. Verified
★★★★★The diagrams do the teachingSeeing the concept drawn before the notation appears changed everything for me.
M Marcus T. Verified
★★★★★A set text for my classThe problem sets are graded properly and the solutions are complete.
See all reviews

Customers also downloaded