20

Errors and Exceptions in Java and Multithreaded Programming

LEARNING OBJECTIVES

At the end of this chapter, you will be able to understand and use

  • Errors and exceptions of Java.
  • How and where they are generated and how they are handled.
  • Create your own exception class.
  • Understand the underlying concepts in multithreaded programs.
  • Understand the problems of racing and solution of synchronization of methods.

20.1 Introduction

Many of you would have come across a pop-up while you are using the Internet or operating system, wherein the pop message would say “OS or Browser has experienced a serious problem and needs to be closed down. Error reporting is in process”. Indeed, an error has occurred. Despite elaborate testing prior to delivery, ...

Get Object-oriented Programming Using C++ and Java 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.