By Mala Gupta , author of OCP Java SE 7 Programmer II Certification Guide
Imagine while debugging or testing your code, you need to reproduce a bug and you need to make a thread pause its execution and give up its current use of the processor. In this article, we discuss some methods you can use to do that.
In this article, based on chapter 1 of OCP Java SE 7 Programmer II Certification Guide, author Mala Gupta explains how to define methods that throw exceptions, the different combinations of defining overriding methods, and when the overridden or overriding methods throw checked exceptions.