Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Defensive Coding in Java

Bugs happen, but you can certainly implement a set of practices to catch them early or even prevent them. In this course, Defensive Coding in Java, you will learn how to make your code safer and more robust.

Beginner
2h
(154)

Created by Andrejs Doronins

Last Updated Nov 13, 2019

Course Thumbnail
  • Course

Defensive Coding in Java

Bugs happen, but you can certainly implement a set of practices to catch them early or even prevent them. In this course, Defensive Coding in Java, you will learn how to make your code safer and more robust.

Beginner
2h
(154)

Created by Andrejs Doronins

Last Updated Nov 13, 2019

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

At the core of software development is a thorough knowledge of troubleshooting and debugging, but it is hardly "fun". It is better to prevent bugs, or at least react to them as early as possible. In this course, Defensive Coding in Java, you'll learn how to write safer and more robust software. First, you'll learn the concept of failing early and how to effectively use a variety of guard clauses in both methods and constructors. Next, you'll explore a set of very popular helper libraries that will make your defensive code more concise and elegant. Then, you'll see how important it is to return predictable and understandable values from your methods and you'll learn how to choose and implement them. Finally, you'll discover a variety of defensive techniques that are often overlooked, yet they greatly contribute to the overall software quality. When you're finished with this course, you'll have the necessary skills to write code that is more reliable and easier to maintain.

Defensive Coding in Java
Beginner
2h
(154)
Table of contents

About the author
Andrejs Doronins - Pluralsight course - Defensive Coding in Java
Andrejs Doronins
44 courses 4.8 author rating 4001 ratings

Andrejs is a Quality Assurance professional and participates in the entire SDLC - from requirements analysis, to test creation and their automation.

Get started with Pluralsight