Skip to Content
Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming
book

Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming

by Iuliana Cosmina
December 2021
Beginner
806 pages
15h 54m
English
Apress
Content preview from Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming
© Iuliana Cosmina 2022
I. CosminaJava 17 for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7080-6_9

9. Debugging, Testing, and Documenting

Iuliana Cosmina1  
(1)
Edinburgh, UK
 

Development work does not only require you to design the solution for a problem and write the code for it. To make sure your solution solves the problem, you have to test it. Testing involves making sure every component making up your solution behaves as expected in expected and unexpected situations.

The most practical way to test code is to inspect values of intermediary variables by logging them and printing them in the console in specific situations.

When a solution is complex, debugging provides the opportunity to pause the execution and inspect the state of the variables. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way

Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way

Iuliana Cosmina

Publisher Resources

ISBN: 9781484270806Purchase LinkPublisher Website