Skip to Content
Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition
book

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition

by Rogers Cadenhead
December 2015
Beginner content levelBeginner
720 pages
19h 6m
English
Sams
Content preview from Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition

Day 7. Exceptions and Threads

Your first week in the Java language ends with two of its most useful elements, threads and exceptions.

Threads are objects that implement the Runnable interface or extend the Thread class, indicating that they can run simultaneously with other parts of a Java program. Exceptions are objects that represent errors that may occur as a Java program runs.

Threads enable programs to make efficient use of resources by isolating the computing-intensive parts of a program so that they don’t slow down everything else. Exceptions enable programs to recognize errors and respond to them. Exceptions even make it possible for programs to correct the conditions and continue running, when possible.

Exceptions are covered first because ...

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™ in 24 Hours, Sams Teach Yourself (Covering Java 8), Seventh Edition

Java™ in 24 Hours, Sams Teach Yourself (Covering Java 8), Seventh Edition

Rogers Cadenhead
Mastering Java 11 - Second Edition

Mastering Java 11 - Second Edition

Dr. Edward Lavieri Jr., Mandar Jog

Publisher Resources

ISBN: 9780133755848Purchase book