O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required