C H A P T E R  11

Debugging with Eclipse

Not every error throws an exception; sometimes, due to poor programming, your code will do something totally wrong without throwing an exception. The computer did exactly what you told it to do, but it didn't do what you meant. When programming, it pays to remember that a computer is just a construction of silicon and various metals, so it is literally as dumb as a box of rocks. It has no conscious ability to adjust for your errors, as another person does when you speak or write.

Software developers love exceptions. Every time Java throws an exception, it provides a stack trace, showing us the classes and methods (and line numbers therein) that led to the exception. That makes finding and fixing the ...

Get Java 7 for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.