Java's Toughest Bugs

Java's Toughest Bugs

1h 3mAdvanced2023-11-15

Authors

Kathryn Hodge

Kathryn Hodge

Software Developer

Course details

Troubleshooting is a key skill in Java programming, but what are best practices for finding, fixing, and hopefully preventing bugs? In this course, software developer Kathryn Hodge addresses how to handle some of the toughest bugs you’ll encounter in Java. Gain an understanding of the significance and impact of bugs in Java applications while you discover various bug detection techniques and essential debugging fundamentals. Explore specific bug types, including null pointer exceptions, endless loops, and thread-related issues, and build up the knowledge and skills to address them. Plus, learn about bugs related to data serialization and deserialization using Jackson and step through real-world case studies for analyzing and solving complex bugs.

Skills covered

JavaOracleSoftware Development ToolsProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Why are bugs important and complex
  • Using GitHub Codespaces with this course
  • Overview of Java bugs
  • How to establish the impact of a bug
  • Common debugging tools in Java
  • How to evaluate the visibility and monitoring of your system

Bug #1 - Endless Loop Phenomena

  • Endless loop symptoms
  • Debugging steps
  • Solve the bug

Bug #2 - Pesky Null Pointer Exceptions

  • Null pointer symptoms
  • Debugging steps
  • Solve the bug
  • Using optionals to avoid null pointer exceptions

Bug #3 - Scope Abstraction Nightmare

  • Bad scope with abstraction symptoms
  • Debugging steps
  • Solve the bug

Bug #4 - Missing Data from Model Class

  • Missing data symptoms
  • Debugging steps
  • Solve the bug

Bug #5 - Inconsistent Results in Multithreaded Environment

  • Inconsistent thread data symptoms
  • Debugging steps
  • Solve the bug

Bug #6 - Infinitely Running Threads in Multithreaded Environment

  • Infinitely running threads symptoms
  • Debugging steps
  • Solve the bug

Conclusion

  • Strategies for preventing Java bugs
40,000 Toman