Introduction: Debugging Interlude—Debugging Arrays

We introduce our last debugging interlude by providing its prerequisites, learning objectives, and overview.

We'll cover the following


Learning objectives

After completing this chapter, you should be able to:

  • Recognize from an error message that you did not allocate a declared array
  • Find a logical error that does not cause an error message
  • Avoid using an index to reference an array element when the value of the index is either less than zero or greater than or equal to the length of the array


This debugging interlude talks about typical execution-time errors that programmers make while using arrays in Java programs.

Get hands-on with 1200+ tech skills courses.